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

Disassembly:
mov eax, dword [edi + 0x1e8]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
dec ebx
push ebx
push eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x34], ebx
call eax
cmp dword [esp + 0x2c], 0
jne 0x40cf8a
mov eax, dword [edi + 0x1e8]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x40d06d
mov eax, dword [edi + 0x1e8]
mov ecx, dword [eax]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jne 0x40d050
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00409db0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40ccc3
mov edx, dword [esi + 8]
mov dword [edx + 8], eax
jmp 0x40ccfe
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ccc6
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x40cce3
mov eax, esi
call fcn.0042c850
mov edx, dword [esp + 0x20]
mov ebx, dword [esi + 8]
push edi
push edx
push esi
call fcn.00432410
add esp, 0xc
mov dword [ebx], eax
mov dword [ebx + 8], 4
mov eax, dword [esp + 0x14]
add dword [esi + 8], 0x10
push eax
call dword [0x47927c]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x40cd1f
mov eax, esi
call fcn.0042c850
mov ebx, dword [esi + 8]
push 0x20
push 0
push 0
push esi
call fcn.0044d330
mov edi, eax
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0x1c]
mov dword [edi], edx
mov dword [eax + 0x1c], edi
mov al, byte [eax + 0x14]
and al, 3
mov byte [edi + 5], al
xor eax, eax
push 0x10
push eax
push eax
push esi
mov byte [edi + 4], 5
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov word [edi + 6], 0xff
mov dword [edi + 0x10], 0x47d998
call fcn.0044d330
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x1c]
add esp, 0x20
cmp eax, 1
jge 0x40cd93
shl eax, 4
lea ebx, [ebx]
mov ecx, dword [edi + 0xc]
mov dword [eax + ecx + 8], 0
add eax, 0x10
cmp eax, 0x10
jl 0x40cd80
push esi
mov eax, 1
mov dword [edi + 0x1c], 1
call fcn.0042a300
add esp, 4
mov dword [ebx], edi
mov dword [ebx + 8], 5
add dword [esi + 8], 0x10
push 8
call fcn.00458a0d
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
xor ebx, ebx
mov byte [esp + 0x78], 1
cmp edi, ebx
je 0x40cdef
mov eax, dword [esp + 0x10]
mov dword [edi], 0x47e398
mov dword [edi + 4], eax
cmp eax, ebx
je 0x40cde9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], edi
jmp 0x40cdf3
mov dword [esp + 0x20], ebx
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jne 0x40d033
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
movzx edi, word [eax + 0x2e]
push eax
mov eax, dword [edx + 0x4c]
push ecx
call eax
mov dword [esp + 0x1c], ebx
cmp edi, ebx
je 0x40cf42
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
dec edi
push edi
push eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x40], edi
call eax
cmp eax, ebx
jne 0x40cfc3
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00409db0
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebx
jne 0x40ce90
mov edx, dword [esi + 8]
mov dword [edx + 8], ebx
add dword [esi + 8], 0x10
jmp 0x40ced5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ce93
sub eax, edx
mov ebx, eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x40ceb0
mov eax, esi
call fcn.0042c850
mov edx, dword [esp + 0x30]
mov edi, dword [esi + 8]
push ebx
push edx
push esi
call fcn.00432410
mov dword [edi], eax
mov dword [edi + 8], 4
add dword [esi + 8], 0x10
mov edi, dword [esp + 0x40]
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x14]
push eax
call dword [0x47927c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 8]
mov edx, dword [eax]
push ebx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
push esi
mov dword [ecx + 0xc], eax
call fcn.004126c0
mov eax, dword [esi + 8]
lea edx, [eax - 0x10]
lea ecx, [eax - 0x30]
push edx
add eax, 0xffffffe0
push eax
push ecx
push esi
call fcn.0042d1a0
mov eax, dword [esp + 0x38]
and al, 0x38
and al, 0x38
mov edx, dword [esp + 0x40]
add dword [esi + 8], 0xffffffe0
mov ecx, dword [eax]
add esp, 0x28
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
mov dword [esp + 0x18], ebx
cmp edi, ebx
jne 0x40ce31
mov eax, dword [esi + 8]
lea edx, [eax - 0x10]
lea ecx, [eax - 0x30]
push edx
add eax, 0xffffffe0
push eax
push ecx
push esi
call fcn.0042d1a0
mov ecx, dword [esp + 0x30]
add dword [esi + 8], 0xffffffe0
add esp, 0x10
cmp ecx, ebx
je 0x40cf6e
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40cf82
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
test ebx, ebx
jne 0x40cc40
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], 0xffffffff
test eax, eax
je 0x40cfab
push eax
call fcn.00458962
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x44], 0x47c5ec
mov dword [esp + 0x4c], 0x47c5e4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x78], 2
lea ebx, [esp + 0x4c]
mov ecx, eax
mov dword [esp + 0x48], 3
call fcn.00409d00
push 0x47c6d4
mov esi, ebx
call fcn.0040bbb0
mov eax, dword [0x494b14]
push eax
call fcn.0040bbb0
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, 0x47c588
call fcn.0040a130
add esp, 4
push 0x48f810
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x80], 0
call fcn.00462174
push 3
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.00404a20
push 0x48f810
lea edx, [esp + 0x5c]
push edx
call fcn.00462174
push 3
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.00404a20
push 0x48f810
lea edx, [esp + 0x5c]
push edx
call fcn.00462174
push 3
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.00404a20
push 0x48f810
lea edx, [esp + 0x5c]
push edx
call fcn.00462174
push ebx
push 1
lea eax, [esp + 0x60]
push eax
call fcn.00404940
push 0x48f810
lea ecx, [esp + 0x5c]
push ecx
call fcn.00462174
push ebx
push ebx
lea edx, [esp + 0x60]
push edx
call fcn.00404940
push 0x48f810
lea eax, [esp + 0x5c]
push eax
call fcn.00462174
int3