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

Disassembly:
push 0xffffffffffffffff
push 0x4490fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [0x4668f4]
mov ecx, dword [esp + 0xac]
xor eax, esp
push ebx
mov ebx, dword [esp + 0xb4]
mov edx, dword [ebx + 0x14]
push esi
mov esi, dword [esp + 0xbc]
mov dword [esp + 0xa0], eax
mov eax, dword [ecx + 0x14]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jne 0x40ccbe
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40ccb0
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 8]
push ecx
push esi
push edx
push eax
call fcn.0040a720
mov eax, dword [esi + 4]
push eax
call fcn.0043beef
add esp, 0x14
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
jmp 0x40cf6a
cmp edx, edi
jne 0x40cccf
push ecx
mov ecx, esi
call fcn.0040cba0
jmp 0x40cf6a
push ebp
xor ebp, ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edi
cmp dword [ebx + 0x18], 0x10
mov dword [esp + 0xb4], edi
jb 0x40ccf0
mov eax, dword [ebx + 4]
jmp 0x40ccf3
lea eax, [ebx + 4]
push edx
push edi
push eax
call fcn.00407390
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
jge 0x40cd18
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0040cba0
jmp 0x40cf69
mov dword [esp + 0x14], 0
jmp 0x40cd26
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
inc ecx
test edi, edi
mov dword [esp + 0x14], ecx
je 0x40cd53
mov ecx, dword [esp + 0x34]
mov eax, ebp
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40cd53
mov dword [ebp], esi
add ebp, 4
mov dword [esp + 0x30], ebp
jmp 0x40cd68
lea edx, [esp + 0x24]
push edx
push 1
push ebp
lea ecx, [esp + 0x34]
call fcn.0040c4e0
mov edi, dword [esp + 0x2c]
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
mov ebp, esi
jb 0x40cd78
mov eax, dword [ebx + 4]
jmp 0x40cd7b
lea eax, [ebx + 4]
push ecx
mov ecx, dword [esp + 0x24]
add ecx, esi
push ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.00407390
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x24], esi
jge 0x40cd22
mov eax, dword [esp + 0x14]
xor ebp, ebp
cmp eax, ebp
jne 0x40cdbd
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
call fcn.0040cba0
lea ecx, [esp + 0x28]
call fcn.00408100
jmp 0x40cf69
xor esi, esi
mov ebx, 0xf
cmp edi, ebp
jne 0x40cdcc
xor eax, eax
jmp 0x40cdd5
mov eax, dword [esp + 0x30]
sub eax, edi
sar eax, 2
cmp esi, eax
jg 0x40cf5c
push ebp
push 0x44c409
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa8], ebp
mov byte [esp + 0x98], 0
call fcn.004014a5
cmp esi, ebp
mov byte [esp + 0xb4], 1
jne 0x40ce69
mov eax, dword [edi]
push eax
push ebp
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0040227e
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0xc0], 2
call fcn.00401416
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0xb4], 1
jb 0x40ce57
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043beef
add esp, 4
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x3c], 0
jmp 0x40cf0d
mov eax, dword [edi + esi*4 - 4]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add eax, edx
cmp eax, ecx
jge 0x40cf0d
cmp edi, ebp
jne 0x40ce87
xor ecx, ecx
jmp 0x40ce90
mov ecx, dword [esp + 0x30]
sub ecx, edi
sar ecx, 2
cmp esi, ecx
jne 0x40cec3
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0040227e
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0xc0], 3
call fcn.00401416
lea ecx, [esp + 0x70]
jmp 0x40cf00
cmp esi, ebp
jle 0x40cf0d
mov eax, dword [edi + esi*4 - 4]
mov ecx, dword [edi + esi*4]
sub ecx, eax
sub ecx, edx
push ecx
add eax, edx
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0040227e
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0xc0], 4
call fcn.00401416
lea ecx, [esp + 0x54]
mov byte [esp + 0xb4], 1
call fcn.004013ae
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x8c]
push edx
call fcn.0040cba0
cmp dword [esp + 0xa4], 0x10
mov byte [esp + 0xb4], 0
jb 0x40cf40
mov eax, dword [esp + 0x90]
push eax
call fcn.0043beef
add esp, 4
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], ebp
mov byte [esp + 0x90], 0
inc esi
jmp 0x40cdc4
cmp edi, ebp
je 0x40cf69
push edi
call fcn.0043beef
add esp, 4
pop ebp
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x9c]
pop ebx
xor ecx, esp
call fcn.004205fd
add esp, 0xa8
ret