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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
movzx eax, byte [ebp + 0x14]
sub esp, 0xdc
dec eax
push ebx
push esi
push edi
je 0x40cb4e
dec eax
je 0x40cb24
mov ebx, 0x449c28
mov dword [esp + 0x24], 0x449be8
mov dword [esp + 0x20], 0x449d28
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0x449c68
mov dword [esp + 0x1c], 0x449ca8
jmp 0x40cb7a
mov dword [esp + 0x24], 0x43c420
mov dword [esp + 0x20], 0x43c460
mov dword [esp + 0x10], 0x43c4a0
mov dword [esp + 0x18], 0x43c4e0
mov dword [esp + 0x1c], 0x43c520
jmp 0x40cb76
mov dword [esp + 0x24], 0x43c2e0
mov dword [esp + 0x20], 0x43c320
mov dword [esp + 0x10], 0x43c360
mov dword [esp + 0x18], 0x43c3a0
mov dword [esp + 0x1c], 0x43c3e0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
mov eax, 0x43c2a0
lea ecx, [esi + 0x40]
mov edx, 8
lea ebx, [ebx]
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
add eax, 8
add ecx, 8
dec edx
jne 0x40cb90
mov ecx, 0x43c2a0
mov eax, esi
sub ecx, esi
mov edx, 8
mov edi, dword [ecx + eax]
mov dword [eax], edi
mov edi, dword [ecx + eax + 4]
mov dword [eax + 4], edi
add eax, 8
dec edx
jne 0x40cbb1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x60], ecx
mov eax, ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], edx
call fcn.0040bd50
cmp al, 1
jb 0x40cc53
lea ecx, [esp + 0x28]
push ebx
mov edx, ecx
call fcn.0040bcc0
add esp, 4
cmp dword [esp + 0x2c], 0
ja 0x40cdb7
jb 0x40cc6b
cmp dword [esp + 0x28], 0
ja 0x40cdb7
cmp dword [esp + 0x34], 0
ja 0x40cdb7
jb 0x40cc83
cmp dword [esp + 0x30], 0
ja 0x40cdb7
cmp dword [esp + 0x3c], 0
ja 0x40cdb7
jb 0x40cc9b
cmp dword [esp + 0x38], 0
ja 0x40cdb7
cmp dword [esp + 0x44], 0
ja 0x40cdb7
jb 0x40ccb3
cmp dword [esp + 0x40], 0
ja 0x40cdb7
cmp dword [esp + 0x4c], 0
ja 0x40cdb7
jb 0x40cccb
cmp dword [esp + 0x48], 0
ja 0x40cdb7
cmp dword [esp + 0x54], 0
ja 0x40cdb7
jb 0x40cce3
cmp dword [esp + 0x50], 0
ja 0x40cdb7
cmp dword [esp + 0x5c], 0
ja 0x40cdb7
jb 0x40ccfb
cmp dword [esp + 0x58], 0
ja 0x40cdb7
cmp dword [esp + 0x64], 0
ja 0x40cdb7
jb 0x40cd13
cmp dword [esp + 0x60], 0
ja 0x40cdb7
mov eax, dword [0x43c260]
mov ecx, dword [0x43c264]
mov edx, dword [0x43c268]
mov dword [esp + 0x28], eax
mov eax, dword [0x43c26c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x43c270]
mov dword [esp + 0x30], edx
mov edx, dword [0x43c274]
mov dword [esp + 0x34], eax
mov eax, dword [0x43c278]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x43c27c]
mov dword [esp + 0x3c], edx
mov edx, dword [0x43c280]
mov dword [esp + 0x40], eax
mov eax, dword [0x43c284]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x43c288]
mov dword [esp + 0x48], edx
mov edx, dword [0x43c28c]
mov dword [esp + 0x4c], eax
mov eax, dword [0x43c290]
mov dword [esp + 0x50], ecx
mov ecx, dword [0x43c294]
mov dword [esp + 0x54], edx
mov edx, dword [0x43c298]
mov dword [esp + 0x58], eax
mov eax, dword [0x43c29c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
jmp 0x40cdb7
mov esi, dword [ebp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [esi + 0x44], 0
ja 0x40ce25
jb 0x40cdc5
cmp dword [esi + 0x40], 0
ja 0x40ce25
cmp dword [esi + 0x4c], 0
ja 0x40ce25
jb 0x40cdd3
cmp dword [esi + 0x48], 0
ja 0x40ce25
cmp dword [esi + 0x54], 0
ja 0x40ce25
jb 0x40cde1
cmp dword [esi + 0x50], 0
ja 0x40ce25
cmp dword [esi + 0x5c], 0
ja 0x40ce25
jb 0x40cdef
cmp dword [esi + 0x58], 0
ja 0x40ce25
cmp dword [esi + 0x64], 0
ja 0x40ce25
jb 0x40cdfd
cmp dword [esi + 0x60], 0
ja 0x40ce25
cmp dword [esi + 0x6c], 0
ja 0x40ce25
jb 0x40ce0b
cmp dword [esi + 0x68], 0
ja 0x40ce25
cmp dword [esi + 0x74], 0
ja 0x40ce25
jb 0x40ce19
cmp dword [esi + 0x70], 0
ja 0x40ce25
cmp dword [esi + 0x7c], 0
ja 0x40ce25
cmp dword [esi + 0x78], 0
jbe 0x40ce34
mov eax, esi
call fcn.0040beb0
cmp al, 1
jne 0x40cff6
lea ecx, [esp + 0x68]
push ecx
call fcn.004028c0
add esp, 4
test al, al
jne 0x40d006
lea edx, [esp + 0x88]
push edx
call fcn.004028c0
add esp, 4
test al, al
jne 0x40d006
mov eax, ebx
lea ecx, [esp + 0x68]
call fcn.0040bd50
cmp al, 1
jb 0x40cec1
lea edi, [esp + 0x68]
mov ecx, ebx
mov edx, edi
xor al, al
sub ecx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0x10
jmp 0x40ce94
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + ecx]
mov ecx, dword [edi]
xor esi, esi
xor ebx, ebx
sub ecx, edx
movzx eax, al
sbb esi, ebx
cdq
sub ecx, eax
sbb esi, edx
cmp esi, 0xffffffff
sete al
mov dword [edi], ecx
add edi, 4
dec dword [esp + 0xc]
jne 0x40ce90
mov ebx, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push 0
lea edi, [esi + 0x40]
lea edx, [esp + 0x74]
push edi
push edx
call fcn.0040d400
add esp, 0x14
mov eax, ebx
mov ecx, edi
call fcn.0040bd50
cmp al, 1
jb 0x40cf38
mov ecx, ebx
xor al, al
sub ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0x10
jmp 0x40cf0b
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + edi]
mov ecx, dword [edi]
xor esi, esi
xor ebx, ebx
sub ecx, edx
movzx eax, al
sbb esi, ebx
cdq
sub ecx, eax
sbb esi, edx
cmp esi, 0xffffffff
sete al
mov dword [edi], ecx
add edi, 4
dec dword [esp + 0xc]
jne 0x40cf07
mov ebx, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0xa8]
push ebx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x40]
call fcn.0040c7f0
push ebx
push esi
lea eax, [esp + 0x78]
lea ecx, [esp + 0x38]
call fcn.0040c7f0
lea ebx, [esp + 0xb8]
add esp, 0x10
xor al, al
mov edi, esi
sub ebx, esi
mov dword [esp + 0xc], 0x10
mov ecx, dword [ebx + edi]
movzx eax, al
xor esi, esi
cdq
add ecx, eax
adc esi, edx
xor eax, eax
add ecx, dword [edi]
adc esi, eax
test esi, esi
setne al
mov dword [edi], ecx
add edi, 4
dec dword [esp + 0xc]
jne 0x40cf73
test al, al
jne 0x40cfae
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
call fcn.0040bd50
cmp al, 1
jb 0x40cdb0
mov edi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
xor al, al
sub ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0x10
jmp 0x40cfcb
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + edi]
mov ecx, dword [edi]
xor esi, esi
xor ebx, ebx
sub ecx, edx
movzx eax, al
sbb esi, ebx
cdq
sub ecx, eax
sbb esi, edx
cmp esi, 0xffffffff
sete al
mov dword [edi], ecx
add edi, 4
dec dword [esp + 0xc]
jne 0x40cfc7
jmp 0x40cdb0
mov eax, esi
call fcn.0040e0f0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret