Function at 0x40bfbd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40c36e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40c36e
cmp dword [ebp + 0x10], 0
je 0x40c36e
test eax, eax
jbe 0x40c36e
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
add esi, 0xd4
mov dword [ebp - 4], eax
mov eax, dword [esi - 0xb8]
and eax, dword [ebp + 0x10]
test ah, 2
mov dword [ebp + 0xc], eax
je 0x40c030
push dword [esi - 4]
call ebx
mov edi, 0xfaf
cmp dword [ebp + 0x10], edi
je 0x40c027
cmp dword [ebp + 0x14], 0
je 0x40c027
and dword [esi - 4], 0
and byte [esi - 0xb7], 0xfd
jmp 0x40c035
mov edi, 0xfaf
mov eax, dword [esi - 0xb8]
xor eax, dword [ebp + 0xc]
test ax, 0x980
jne 0x40c077
push dword [esi]
call ebx
xor eax, eax
cmp dword [esi + 4], eax
mov dword [esi], eax
mov dword [ebp + 8], eax
jbe 0x40c06a
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*4]
call ebx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
jb 0x40c054
push dword [esi + 8]
call ebx
and dword [esi + 8], 0
and dword [esi + 4], 0
test byte [ebp + 0xd], 8
je 0x40c16f
push dword [esi - 0x20]
call ebx
push dword [esi - 0x24]
call ebx
and dword [ebp + 8], 0
cmp dword [esi - 0x1c], 0
jbe 0x40c0ab
mov eax, dword [esi - 0x18]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*4]
call ebx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi - 0x1c]
jb 0x40c095
push dword [esi - 0x18]
call ebx
and dword [ebp + 8], 0
cmp dword [esi - 0x14], 0
jbe 0x40c0d0
mov eax, dword [esi - 0x10]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*4]
call ebx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi - 0x14]
jb 0x40c0ba
push dword [esi - 0x10]
call ebx
and dword [ebp + 8], 0
cmp dword [esi - 0xc], 0
jbe 0x40c0f5
mov eax, dword [esi - 8]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*4]
call ebx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi - 0xc]
jb 0x40c0df
push dword [esi - 8]
call ebx
cmp dword [ebp + 0x10], edi
je 0x40c168
cmp dword [ebp + 0x14], 0
je 0x40c168
xor eax, eax
lea edi, [esi - 0x74]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi - 0x68]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esi - 0x20], eax
mov dword [esi - 0x24], eax
mov dword [esi - 0x1c], eax
mov dword [esi - 0x18], eax
mov dword [esi - 0x14], eax
mov dword [esi - 0x10], eax
mov dword [esi - 0xc], eax
mov dword [esi - 8], eax
mov dword [esi - 0x78], 7
mov dword [esi - 0x5c], eax
mov dword [esi - 0x54], eax
mov dword [esi - 0x50], eax
mov dword [esi - 0x4c], eax
mov dword [esi - 0x48], eax
mov dword [esi - 0x44], eax
mov dword [esi - 0x40], eax
mov dword [esi - 0x3c], eax
mov dword [esi - 0x34], eax
mov dword [esi - 0x30], eax
mov dword [esi - 0x2c], eax
mov dword [esi - 0x28], eax
mov edi, 0xfaf
and byte [esi - 0xb7], 0xf7
test byte [ebp + 0xd], 4
je 0x40c198
cmp dword [ebp + 0x10], edi
je 0x40c191
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x40c191
mov dword [esi - 0x84], 1
mov dword [esi - 0x7c], eax
mov dword [esi - 0x80], eax
and byte [esi - 0xb7], 0xfb
test byte [ebp + 0xd], 1
je 0x40c1c9
push 0
push dword [esi + 0x1c]
push dword [esi + 0x20]
call fcn.0040bef6
push dword [esi + 0x20]
call ebx
cmp dword [ebp + 0x10], edi
je 0x40c1c2
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x40c1c2
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
and byte [esi - 0xb7], 0xfe
test byte [ebp + 0xc], 0x80
je 0x40c1fa
push 0
push dword [esi + 0x24]
push dword [esi + 0x28]
call fcn.0040be93
push dword [esi + 0x28]
call ebx
cmp dword [ebp + 0x10], edi
je 0x40c1f3
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x40c1f3
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
and byte [esi - 0xb8], 0x7f
test byte [ebp + 0xc], 0x20
je 0x40c22b
push 0
push dword [esi + 0x2c]
push dword [esi + 0x30]
call fcn.0040be35
push dword [esi + 0x30]
call ebx
cmp dword [ebp + 0x10], edi
je 0x40c224
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x40c224
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
and dword [esi - 0xb8], 0xffffffdf
test byte [ebp + 0xc], 8
je 0x40c297
push dword [esi + 0x60]
call ebx
push dword [esi + 0x68]
call ebx
push dword [esi + 0x70]
call ebx
and dword [ebp + 8], 0
cmp dword [esi + 0x74], 0
jbe 0x40c261
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*8 + 4]
call ebx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x74]
jb 0x40c24a
push dword [esi + 0x78]
call ebx
cmp dword [ebp + 0x10], edi
je 0x40c290
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x40c290
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
lea edi, [esi + 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esi + 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0xfaf
and dword [esi - 0xb8], 0xfffffff7
test byte [ebp + 0xc], 2
je 0x40c2dc
push dword [esi + 0x48]
call ebx
push dword [esi + 0x40]
call ebx
push dword [esi + 0x38]
call ebx
push dword [esi + 0x50]
call ebx
cmp dword [ebp + 0x10], edi
je 0x40c2d5
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x40c2d5
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
and dword [esi - 0xb8], 0xfffffffd
test byte [ebp + 0xc], 4
je 0x40c305
push dword [esi + 0x58]
call ebx
cmp dword [ebp + 0x10], edi
je 0x40c2fe
cmp dword [ebp + 0x14], 0
je 0x40c2fe
xor eax, eax
lea edi, [esi + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0xfaf
and dword [esi - 0xb8], 0xfffffffb
test byte [ebp + 0xc], 1
je 0x40c345
cmp dword [esi - 0xb8], 1
jne 0x40c345
and dword [ebp + 8], 0
cmp dword [esi - 0x8c], 0
jbe 0x40c33d
mov eax, dword [esi - 0x88]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*4]
call ebx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [esi - 0x8c]
jb 0x40c321
push dword [esi - 0x88]
call ebx
cmp dword [ebp + 0x10], edi
jne 0x40c35d
cmp dword [ebp + 0x14], 0
je 0x40c35d
push 0x54
pop ecx
xor eax, eax
lea edi, [esi - 0xd4]
rep stosd dword es:[edi], eax
add esi, 0x150
dec dword [ebp - 4]
jne 0x40bffd
pop edi
pop ebx
pop esi
leave
ret 0x10