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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x435040]
xor eax, esp
mov dword [esp + 0x2e0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x68], eax
mov eax, dword [0x436620]
mov esi, 0x436620
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x6c], eax
jle 0x40c637
lea eax, [esp + 0x3c]
push eax
mov eax, ebx
call fcn.0040c545
cmp eax, edi
je 0x40c637
mov esi, eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.004040c2
mov eax, esi
jmp 0x40cd73
mov eax, dword [0x436620]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [0x436620]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x20], eax
jne 0x40c6c5
lea eax, [ebx + 0x50]
lea edi, [esp + 0x24]
call fcn.0040d1f1
lea edi, [esp + 0x2c]
call fcn.004036b2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004040c2
mov esi, edi
call fcn.0040d0c8
lea eax, [ebx + 0x58]
lea edi, [esp + 0x20]
call fcn.004036b2
mov esi, edi
call fcn.0040d0c8
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.0040cd8a
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00403b6d
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.004040c2
mov esi, 0x436620
xor edi, edi
mov ecx, esi
lea esi, [esp + 0x4c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call fcn.00404010
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x1c], edi
jle 0x40ca8f
push 0x250
call fcn.0041fd2b
mov edi, eax
xor esi, esi
pop ecx
cmp edi, esi
je 0x40c772
or dword [edi], 0xffffffff
mov byte [edi + 4], 1
xor eax, eax
mov word [edi + 0x20], ax
mov dword [edi + 8], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x228], esi
mov dword [edi + 0x22c], esi
mov dword [edi + 0x230], esi
lea eax, [edi + 0x238]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [edi + 0x240], esi
mov dword [edi + 0x244], esi
lea esi, [edi + 0x248]
mov ecx, 0x436620
call fcn.00404010
mov dword [esp + 0x18], edi
xor esi, esi
jmp 0x40c776
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x40c7ce
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
cmp edx, ecx
jb 0x40c79b
lea edx, [ecx + eax*4]
lea edi, [esp + 0x18]
cmp edi, edx
jb 0x40cb96
cmp eax, esi
jne 0x40c7a4
xor edi, edi
inc edi
jmp 0x40c7b6
mov edi, dword [esp + 0x10]
add edi, edi
cmp edi, esi
jl 0x40c7e7
cmp edi, 0x1fffffff
ja 0x40c7e7
push 4
push edi
push ecx
call fcn.0041fc06
add esp, 0xc
cmp eax, esi
je 0x40c7e7
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx*4]
cmp eax, esi
je 0x40c7e3
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.0040da52
cmp dword [0x43728c], esi
mov edi, dword [eax]
lea eax, [edi + 8]
mov dword [esp + 0x24], eax
mov al, byte [ebp + 0x10]
mov dword [esp + 0x28], edi
mov byte [edi + 4], al
jg 0x40c820
lea eax, [esp + 0x3c]
call fcn.00413af6
test al, al
je 0x40cba0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
call fcn.0040da52
cmp byte [ebp + 0x10], 0
mov eax, dword [eax]
je 0x40c8f5
mov ecx, dword [esp + 0x30]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
call fcn.0040da52
mov eax, dword [eax]
lea ecx, [ebx + 0x60]
call fcn.0040ce8c
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
call fcn.0040da52
mov eax, dword [eax]
lea ecx, [ebx + 0x60]
call fcn.0040ce8c
mov dword [esp + 0x38], eax
add eax, 0x18
push eax
lea eax, [ebx + 0x58]
lea ecx, [esp + 0x64]
call fcn.0040cdbc
cmp dword [esp + 0x1c], 9
pop ecx
je 0x40c893
cmp dword [esp + 0x18], 0xa
jne 0x40c8a2
add edi, 0x248
lea eax, [esp + 0x60]
call fcn.004036b2
lea eax, [esp + 0x60]
lea edi, [esp + 0x64]
call fcn.0040d1f1
mov eax, edi
mov edi, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x3c]
push esi
push dword [eax + 0xc]
push esi
push dword [eax + 0x10]
lea eax, [ebx + 0x50]
call fcn.00413b72
mov edi, eax
lea eax, [ebx + 0x9c]
push eax
push 1
lea eax, [esp + 0x6c]
call fcn.0040d7f3
mov eax, dword [esp + 0x6c]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004040c2
mov eax, dword [esp + 0x60]
jmp 0x40ca2a
lea ecx, [ebx + 0x84]
call fcn.0040cf29
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp eax, 9
je 0x40c911
cmp eax, 0xa
jne 0x40c950
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
call fcn.0040da52
mov eax, dword [eax]
lea ecx, [ebx + 0x84]
call fcn.0040cf29
push eax
lea eax, [ebx + 0x58]
lea ecx, [esp + 0x74]
call fcn.0040cdbc
pop ecx
add edi, 0x248
call fcn.004036b2
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
call fcn.004040c2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
call fcn.0040da52
mov eax, dword [eax]
lea ecx, [ebx + 0x84]
call fcn.0040cf29
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x60]
call fcn.0040cdbc
mov dword [esp], 0x24c
lea eax, [esp + 0xa0]
push esi
push eax
mov dword [esp + 0xa4], esi
call fcn.0041f1a0
add esp, 0xc
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x60]
call dword [0x42e210]
push 1
push esi
push esi
push dword [esp + 0xc0]
mov dword [esp + 0xa0], eax
call fcn.0042abe0
mov ecx, dword [esp + 0xb8]
xor edi, edi
add eax, ecx
adc edx, edi
cmp dword [esp + 0x18], 6
je 0x40c9db
cmp dword [esp + 0x18], 7
jne 0x40c9e1
lea ecx, [esp + 0x20]
jmp 0x40c9e4
lea ecx, [ebx + 0x58]
mov edi, dword [esp + 0x24]
push ecx
push edx
push eax
push esi
push esi
lea eax, [esp + 0x70]
mov dword [esp + 0x4c], ecx
call fcn.00413b72
mov edi, eax
lea eax, [ebx + 0x9c]
push eax
mov eax, dword [esp + 0x3c]
push 1
call fcn.0040d7f3
pop ecx
pop ecx
cmp dword [esp + 0x90], esi
je 0x40ca26
push dword [esp + 0x90]
call dword [0x42e0a4]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
call fcn.004040c2
cmp edi, esi
jne 0x40cc4a
cmp dword [esp + 0x18], 6
jne 0x40ca59
cmp byte [ebx + 0x7c], 0
je 0x40ca59
add ebx, 0x58
lea esi, [esp + 0x40]
call fcn.004065f1
mov ebx, dword [esp + 0x34]
xor esi, esi
mov eax, dword [esp + 0x68]
cmp dword [eax], esi
je 0x40ca7b
push dword [esp + 0x24]
call dword [0x437294]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x240], eax
mov dword [ecx + 0x244], edx
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x6c]
jl 0x40c702
xor edi, edi
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x78], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x7c], eax
mov eax, esi
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
call fcn.0040ae07
mov dword [esp + 0x34], eax
cmp eax, edi
je 0x40cc98
mov esi, dword [0x42e298]
cmp dword [esp + 0x88], edi
je 0x40caf1
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x54], edi
je 0x40cb01
push dword [esp + 0x54]
call esi
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.004040c2
lea esi, [esp + 0x40]
call fcn.00403a4f
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x28], eax
jle 0x40cb59
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0040da52
mov esi, dword [eax]
cmp esi, edi
je 0x40cb52
mov eax, dword [esi + 0x248]
sub eax, 0x10
call fcn.004040c2
lea eax, [esi + 8]
call fcn.00413a90
push esi
call fcn.0041f17a
pop ecx
inc ebx
cmp ebx, dword [esp + 0x28]
jl 0x40cb24
cmp dword [esp + 0xc], edi
je 0x40cb6d
push dword [esp + 0xc]
call fcn.0041f4b1
pop ecx
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004040c2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004040c2
mov esi, dword [esp + 0x34]
jmp 0x40c624
push 0x80004005
call fcn.0040402b
cmp dword [esp + 0x54], esi
je 0x40cbb4
push dword [esp + 0x54]
call dword [0x42e298]
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.004040c2
lea esi, [esp + 0x40]
call fcn.00403a4f
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x40cc0e
mov eax, edi
lea ecx, [esp + 0xc]
call fcn.0040da52
mov esi, dword [eax]
cmp esi, ebx
je 0x40cc07
mov eax, dword [esi + 0x248]
sub eax, 0x10
call fcn.004040c2
lea eax, [esi + 8]
call fcn.00413a90
push esi
call fcn.0041f17a
pop ecx
inc edi
cmp edi, dword [esp + 0x28]
jl 0x40cbd9
cmp dword [esp + 0xc], ebx
je 0x40cc22
push dword [esp + 0xc]
call fcn.0041f4b1
pop ecx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004040c2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004040c2
push 0xb
pop esi
jmp 0x40c624
cmp dword [esp + 0x54], esi
je 0x40cc5e
push dword [esp + 0x54]
call dword [0x42e298]
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.004040c2
lea esi, [esp + 0x40]
call fcn.00403a4f
lea esi, [esp + 0xc]
call fcn.0040cfb5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004040c2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004040c2
push 0xd
jmp 0x40cc44
mov eax, dword [esi + 8]
lea ecx, [esp + 0x40]
call fcn.0041dc30
mov esi, dword [0x42e298]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x88], edi
je 0x40ccc7
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x54], edi
je 0x40ccd7
push dword [esp + 0x54]
call esi
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.004040c2
lea esi, [esp + 0x40]
call fcn.00403a4f
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x28], eax
jle 0x40cd2f
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0040da52
mov esi, dword [eax]
cmp esi, edi
je 0x40cd28
mov eax, dword [esi + 0x248]
sub eax, 0x10
call fcn.004040c2
lea eax, [esi + 8]
call fcn.00413a90
push esi
call fcn.0041f17a
pop ecx
inc ebx
cmp ebx, dword [esp + 0x28]
jl 0x40ccfa
cmp dword [esp + 0xc], edi
je 0x40cd43
push dword [esp + 0xc]
call fcn.0041f4b1
pop ecx
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004040c2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.004040c2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.004040c2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041f185
mov esp, ebp
pop ebp
ret 0xc