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

Disassembly:
push esi
sub esp, 0x98
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x2c], eax
add eax, 0xc
mov dword [esp], eax
call fcn.0040daf0
mov ecx, eax
mov eax, dword [esp + 0x2c]
add ecx, 0x28
mov dword [esp + 0x30], ecx
mov dword [esp + 0x60], ecx
add eax, 0xc
mov dword [esp], eax
call fcn.0040da70
mov ecx, eax
mov eax, dword [esp + 0x34]
sub eax, ecx
mov dword [esp + 0x38], eax
seto al
test al, 1
jne 0x40c966
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], eax
cmp eax, 0
je 0x40c973
jmp 0x40c98b
mov eax, esp
mov dword [eax], 0x5047d0
call fcn.0044b9f0
mov dword [esp + 0x3c], 0xb
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
add esp, 0x98
pop esi
ret
mov eax, dword [esp + 0x30]
cmp dword [eax], 0
je 0x40c973
mov eax, dword [esp + 0x30]
cmp dword [eax + 4], 0
je 0x40c973
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add eax, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], eax
cmp dword [eax + 4], 0
jne 0x40c9d7
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
je 0x40c973
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
sub eax, 8
mov dword [esp + 0x24], eax
seto al
test al, 1
jne 0x40ca00
mov eax, dword [esp + 0x24]
cmp eax, 0x80000000
sete al
and al, 0
test al, 1
jne 0x40ca43
jmp 0x40ca0d
mov eax, esp
mov dword [eax], 0x5047e0
call fcn.0044b9f0
mov eax, dword [esp + 0x24]
mov ecx, 2
cdq
idiv ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040b930
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jmp 0x40ca50
mov eax, esp
mov dword [eax], 0x5047e0
call fcn.0044ba70
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.0040b510
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
cmp dword [esp + 0x58], 0
jne 0x40ca8f
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add eax, ecx
mov dword [esp + 0x44], eax
jmp 0x40c9bc
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
mov ecx, 2
imul eax, ecx
mov dword [esp + 0x20], eax
seto al
test al, 1
jne 0x40cac6
mov eax, dword [esp + 0x20]
add eax, 8
mov dword [esp + 0x18], eax
seto al
test al, 1
jne 0x40cb06
jmp 0x40cad3
mov eax, esp
mov dword [eax], 0x5047f0
call fcn.0044ba30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov ax, word [eax + ecx]
mov word [esp + 0x16], ax
mov word [esp + 0x72], ax
shr ax, 0xc
cmp ax, 3
je 0x40cb13
jmp 0x40ca50
mov eax, esp
mov dword [eax], 0x504800
call fcn.0044b9b0
mov cx, word [esp + 0x16]
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
and cx, 0xfff
movzx ecx, cx
add eax, ecx
mov dword [esp + 0x10], eax
seto al
test al, 1
jne 0x40cb63
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov esi, ecx
add esi, edx
mov dword [esp + 8], esi
mov dword [esp + 0x74], esi
add eax, dword [ecx + edx]
mov dword [esp + 0xc], eax
seto al
test al, 1
jne 0x40cb7f
jmp 0x40cb70
mov eax, esp
mov dword [eax], 0x504810
call fcn.0044b9b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x40ca50
mov eax, esp
mov dword [eax], 0x504820
call fcn.0044b9b0
int3