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

Disassembly:
push 0xffffffffffffffff
push 0x5163e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568cb8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov edi, ecx
lea eax, [esp + 0x38]
push eax
call fcn.00434170
mov ecx, dword [esp + 0x64]
xor ebx, ebx
lea edx, [esp + 0x38]
mov dword [esp + 0x58], ebx
call fcn.0040eee0
mov esi, eax
cmp esi, ebx
je 0x40c4d9
lea ebx, [esp + 0x38]
call fcn.0040a2a0
mov ecx, dword [esp + 0x38]
push 1
push ecx
lea ecx, [esp + 0x44]
call fcn.00461a10
lea ecx, [esp + 0x38]
call fcn.0046aeb0
mov eax, esi
jmp 0x40ca13
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x18]
call fcn.004703f0
cmp dword [esp + 0x44], esi
ja 0x40c4f2
cmp esi, dword [esp + 0x48]
jbe 0x40c4f7
call fcn.004bb13c
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
call fcn.004026e0
mov dword [esp + 0x1c], esi
lea esp, [esp]
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x20]
call fcn.004703f0
cmp dword [esp + 0x44], esi
ja 0x40c529
cmp esi, dword [esp + 0x48]
jbe 0x40c52e
call fcn.004bb13c
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
call fcn.004026e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], esi
call fcn.00405e70
test al, al
je 0x40c55f
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405e50
test al, al
jne 0x40c564
call fcn.004bb13c
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x24]
je 0x40c8f4
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x40c5f0
lea ecx, [esp + 0x18]
call fcn.00405e70
test al, al
jne 0x40c590
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x10]
jb 0x40c5ad
call fcn.004bb13c
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x58]
or edx, dword [eax + 0x5c]
je 0x40c5f0
lea ecx, [esp + 0x18]
call fcn.00405e70
test al, al
jne 0x40c5c7
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x10]
jb 0x40c5e4
call fcn.004bb13c
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x58]
mov dword [esi + 8], edx
mov eax, dword [eax + 0x5c]
mov dword [esi + 0xc], eax
test ebx, ebx
jne 0x40c7f0
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x20], 1
je 0x40c7f0
mov edx, dword [edi]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 4]
lea ecx, [esp + 0x18]
mov dword [esi + 0x14], eax
call fcn.00405e70
test al, al
jne 0x40c623
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x40c63a
call fcn.004bb13c
mov edx, dword [esp + 0x1c]
test byte [edx + 0x32], 1
je 0x40c735
mov ebx, dword [esp + 0x70]
mov eax, ebx
call fcn.0040d8e0
mov esi, eax
test byte [esi + 0x32], 2
je 0x40c8ca
lea ecx, [esp + 0x18]
call fcn.00405e70
test al, al
jne 0x40c671
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x10]
jb 0x40c68e
call fcn.004bb13c
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x10]
add dword [edi], edx
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x18]
adc dword [edi + 4], eax
call fcn.00405e70
test al, al
jne 0x40c6ab
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x40c6c2
call fcn.004bb13c
mov edx, dword [esi + 0x58]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x58], edx
mov ecx, dword [esi + 0x5c]
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x5c], ecx
lea ecx, [esp + 0x18]
call fcn.00405e70
test al, al
jne 0x40c6e8
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x40c6ff
call fcn.004bb13c
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x10]
add eax, 0x10
add dword [eax], edx
mov ecx, dword [esi + 0x14]
adc dword [eax + 4], ecx
test byte [esi + 0x32], 1
jne 0x40c72b
lea esi, [esp + 0x18]
call fcn.0040a170
add eax, 0x32
mov edx, 0xfffe
and word [eax], dx
call fcn.0040d960
jmp 0x40c892
lea ecx, [esp + 0x18]
call fcn.00405e70
test al, al
jne 0x40c747
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x40c75e
call fcn.004bb13c
mov edx, dword [edi]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x58], edx
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x5c], ecx
lea ecx, [esp + 0x18]
call fcn.00405e70
test al, al
jne 0x40c783
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x10]
jb 0x40c7a0
call fcn.004bb13c
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x10]
add dword [edi], edx
mov eax, dword [eax + 0x14]
mov esi, 0x64
adc dword [edi + 4], eax
inc dword [ebp]
mov ecx, dword [ebp]
xor edx, edx
mov eax, ecx
div esi
test edx, edx
jne 0x40c892
mov eax, dword [esp + 0x74]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
mov esi, eax
test esi, esi
je 0x40c892
lea ebx, [esp + 0x38]
call fcn.0040a2a0
mov eax, dword [esp + 0x38]
push 1
push eax
jmp 0x40c4c0
lea ecx, [esp + 0x18]
call fcn.00405e70
test al, al
jne 0x40c802
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x40c819
call fcn.004bb13c
mov edx, dword [edi]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x58], edx
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x5c], ecx
lea ecx, [esp + 0x18]
call fcn.00405e70
test al, al
jne 0x40c83e
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 0x10]
jb 0x40c85b
call fcn.004bb13c
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x10]
add dword [edi], edx
mov eax, dword [eax + 0x14]
mov esi, 0x64
adc dword [edi + 4], eax
inc dword [ebp]
mov ecx, dword [ebp]
xor edx, edx
mov eax, ecx
div esi
test edx, edx
jne 0x40c892
mov eax, dword [esp + 0x74]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
mov esi, eax
test esi, esi
jne 0x40c4b0
lea ecx, [esp + 0x18]
mov ebx, 1
call fcn.00405e70
test al, al
jne 0x40c8a9
call fcn.004bb13c
lea ecx, [esp + 0x18]
call fcn.00405d70
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x40c8c0
call fcn.004bb13c
add dword [esp + 0x1c], 0x68
jmp 0x40c510
lea ebx, [esp + 0x38]
call fcn.0040a2a0
mov edx, dword [esp + 0x38]
push 1
push edx
lea ecx, [esp + 0x44]
call fcn.00461a10
mov ecx, ebx
call fcn.0046aeb0
mov eax, 0x80004005
jmp 0x40ca13
mov eax, dword [esp + 0x68]
mov edx, dword [edi]
sub edx, dword [eax + 0x10]
mov ecx, dword [edi + 4]
sbb ecx, dword [eax + 0x14]
mov ebp, dword [esp + 0x70]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x18], edx
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0x28]
call fcn.004703f0
cmp dword [ebp + 0xc], esi
ja 0x40c923
cmp esi, dword [ebp + 0x10]
jbe 0x40c928
call fcn.004bb13c
push ebp
lea ecx, [esp + 0x2c]
call fcn.004026e0
mov edi, dword [esp + 0x28]
mov dword [esp + 0x2c], esi
mov ebx, esi
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x20]
call fcn.004703f0
cmp dword [esp + 0x44], esi
ja 0x40c955
cmp esi, dword [esp + 0x48]
jbe 0x40c95a
call fcn.004bb13c
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
call fcn.004026e0
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x44]
lea ecx, [esp + 0x30]
call fcn.004703f0
cmp dword [esp + 0x44], esi
ja 0x40c985
cmp esi, dword [esp + 0x48]
jbe 0x40c98a
call fcn.004bb13c
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
call fcn.004026e0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov eax, esi
push eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
push eax
push ebx
push edi
push ecx
mov ecx, ebp
call fcn.0040dee0
mov esi, dword [esp + 0x44]
xor ebx, ebx
cmp esi, ebx
je 0x40c9ec
mov edi, dword [esp + 0x48]
cmp esi, edi
je 0x40c9e3
mov edi, edi
lea ecx, [esi + 0x38]
call fcn.00401320
add esi, 0x68
cmp esi, edi
jne 0x40c9d0
mov esi, dword [esp + 0x44]
push esi
call fcn.004b7ea4
add esp, 4
mov edx, dword [esp + 0x38]
push 1
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00461a10
lea ecx, [esp + 0x38]
call fcn.0046aeb0
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x18