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

Disassembly:
push 0xffffffffffffffff
push 0x40f553
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x416110]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x54], eax
push edi
mov dword [esp + 0x38], esi
push 0x4125f4
mov dword [esp + 0x68], 0xb
call fcn.00405760
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esi + 0x34], 0
mov byte [esi + 0x35], 1
call fcn.00408170
mov dword [esp + 0x20], eax
mov byte [eax + 0x31], 1
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax], eax
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esp + 0x24], ebx
lea ebp, [esi + 0xcc]
push ebp
mov byte [esp + 0x68], 0xc
call dword [0x4100b4]
lea edi, [esi + 0x60]
lea eax, [esp + 0x1c]
cmp eax, edi
je 0x40c1f0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040b030
push edi
lea ecx, [esp + 0x20]
call fcn.0040b0f0
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, edi
call fcn.00408fa0
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov eax, dword [edi + 4]
push ebp
mov dword [eax + 8], eax
call dword [0x4100b0]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x18], eax
je 0x40c2c8
mov edi, dword [0x41022c]
mov ebp, dword [0x410230]
mov ebx, dword [0x4100cc]
lea ecx, [ecx]
add eax, 0xc
push eax
lea ecx, [esp + 0x40]
call dword [0x4101d0]
push 0x4110d4
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 0xd
call dword [0x4101d8]
push 0x416400
lea ecx, [esp + 0x40]
call dword [0x4101cc]
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x40c280
lea eax, [esp + 0x40]
push 0x411148
push eax
call edi
push eax
call ebp
mov eax, dword [esp + 0x60]
add esp, 0xc
cmp eax, 8
mov eax, dword [esp + 0x40]
jae 0x40c29f
lea eax, [esp + 0x40]
push eax
call ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 0xc
call dword [0x4101c8]
lea ecx, [esp + 0x18]
call fcn.00407200
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
jne 0x40c240
lea eax, [esi + 0xb4]
push eax
call dword [0x41015c]
mov ebx, dword [0x4100d0]
mov dword [esp + 0x18], 0x2710
mov eax, dword [esi + 0x38]
test eax, eax
mov edi, 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], edi
mov ebp, edi
je 0x40c309
lea ecx, [esp + 0x2c]
push ecx
push eax
call ebx
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40c318
lea edx, [esp + 0x30]
push edx
push eax
call ebx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x40c327
lea ecx, [esp + 0x28]
push ecx
push eax
call ebx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40c336
lea edx, [esp + 0x14]
push edx
push eax
call ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40c3c2
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
cmp edi, eax
je 0x40c3bd
lea esp, [esp]
mov ecx, dword [edi + 0x2c]
lea eax, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x3c], 1
call ebx
mov eax, dword [esp + 0x34]
cmp eax, 1
jne 0x40c3bb
mov al, byte [edi + 0x31]
test al, al
jne 0x40c3b3
mov eax, dword [edi + 8]
mov cl, byte [eax + 0x31]
test cl, cl
jne 0x40c395
mov edi, eax
mov eax, dword [edi]
mov cl, byte [eax + 0x31]
test cl, cl
jne 0x40c3b3
mov edi, eax
mov eax, dword [edi]
mov cl, byte [eax + 0x31]
test cl, cl
je 0x40c388
jmp 0x40c3b3
mov eax, dword [edi + 4]
mov cl, byte [eax + 0x31]
test cl, cl
jne 0x40c3b1
nop
cmp edi, dword [eax + 8]
jne 0x40c3b1
mov edi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x31]
test cl, cl
je 0x40c3a0
mov edi, eax
cmp edi, dword [esp + 0x20]
jne 0x40c350
jmp 0x40c3bd
mov ebp, eax
mov edi, 1
cmp dword [esp + 0x2c], edi
jne 0x40c3de
cmp dword [esp + 0x30], edi
jne 0x40c3de
cmp dword [esp + 0x28], edi
jne 0x40c3de
cmp dword [esp + 0x14], edi
jne 0x40c3de
cmp ebp, edi
je 0x40c3f8
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x40c3f8
push 0x64
call dword [0x410130]
sub dword [esp + 0x18], 0x64
jmp 0x40c2e3
mov ecx, esi
call fcn.00406620
mov eax, dword [esi + 0xec]
xor ebp, ebp
cmp eax, ebp
mov ebx, 2
je 0x40c454
mov eax, dword [esi + 0xe8]
cmp eax, ebx
lea edi, [esi + 0xe4]
mov ebp, edi
jl 0x40c424
mov ebp, dword [edi]
mov eax, dword [edi + 4]
cmp eax, ebx
jge 0x40c430
lea eax, [edi + eax*4]
jmp 0x40c435
mov edx, dword [edi]
lea eax, [edx + eax*4]
cmp ebp, eax
jae 0x40c452
mov ecx, dword [ebp]
test ecx, ecx
je 0x40c44d
mov eax, dword [esi + 0xec]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x10]
add ebp, 4
jmp 0x40c424
xor ebp, ebp
mov edi, dword [0x41015c]
lea eax, [esi + 0xb4]
push eax
call edi
lea eax, [esi + 0xcc]
push eax
call edi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 0xb
call fcn.0040b030
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040ea1e
add esp, 4
lea ecx, [esi + 0x120]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0x64], 0xa
call fcn.00405cc0
mov eax, dword [esi + 0x118]
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [esi + 0x118]
mov dword [eax + 4], eax
cmp edi, dword [esi + 0x118]
mov byte [esp + 0x64], 9
mov dword [esi + 0x11c], ebp
je 0x40c4f4
mov ebp, dword [edi]
lea ecx, [edi + 8]
call dword [0x4101c8]
push edi
call fcn.0040ea1e
mov eax, dword [esi + 0x118]
add esp, 4
cmp ebp, eax
mov edi, ebp
jne 0x40c4d2
xor ebp, ebp
mov eax, dword [esi + 0x118]
push eax
call fcn.0040ea1e
mov dword [esi + 0x118], ebp
mov edi, dword [esi + 0x108]
add esp, 4
cmp edi, ebp
mov byte [esp + 0x64], 8
je 0x40c542
mov ebp, dword [esi + 0x10c]
cmp edi, ebp
je 0x40c531
mov ecx, edi
call dword [0x4101c8]
add edi, 0x1c
cmp edi, ebp
jne 0x40c522
mov eax, dword [esi + 0x108]
push eax
call fcn.0040ea1e
add esp, 4
xor ebp, ebp
mov dword [esi + 0x108], ebp
mov dword [esi + 0x10c], ebp
mov dword [esi + 0x110], ebp
mov eax, dword [esi + 0xfc]
mov ecx, dword [eax]
lea edi, [esi + 0xf8]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
mov byte [esp + 0x70], 7
call fcn.00408fe0
mov eax, dword [edi + 4]
push eax
call fcn.0040ea1e
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov eax, dword [esi + 0xec]
add esp, 4
cmp eax, ebp
mov byte [esp + 0x64], 6
je 0x40c59c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0xe8], 1
jle 0x40c5b5
mov edx, dword [esi + 0xe4]
push edx
call dword [0x410244]
add esp, 4
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x80]
mov dword [ecx + 4], ecx
cmp eax, dword [esi + 0x80]
mov dword [esi + 0x84], ebp
je 0x40c5ed
mov edi, dword [eax]
push eax
call fcn.0040ea1e
mov ecx, dword [esi + 0x80]
add esp, 4
cmp edi, ecx
mov eax, edi
jne 0x40c5d6
mov eax, dword [esi + 0x80]
push eax
call fcn.0040ea1e
mov dword [esi + 0x80], ebp
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esi + 0x74]
mov dword [ecx + 4], ecx
mov ecx, dword [esi + 0x74]
add esp, 4
cmp eax, ecx
mov dword [esi + 0x78], ebp
je 0x40c634
lea esp, [esp]
mov edi, dword [eax]
push eax
call fcn.0040ea1e
mov ecx, dword [esi + 0x74]
add esp, 4
cmp edi, ecx
mov eax, edi
jne 0x40c620
mov eax, dword [esi + 0x74]
push eax
call fcn.0040ea1e
add esp, 4
mov dword [esi + 0x74], ebp
mov eax, dword [esi + 0x64]
mov ecx, dword [eax]
lea edi, [esi + 0x60]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
mov byte [esp + 0x70], bl
call fcn.0040b030
mov eax, dword [edi + 4]
push eax
call fcn.0040ea1e
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x54]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
mov byte [esp + 0x70], 1
call fcn.0040b030
mov eax, dword [edi + 4]
push eax
call fcn.0040ea1e
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [esi + 0x20], 0x411980
mov eax, dword [esi + 0x28]
add esp, 4
cmp eax, ebp
mov byte [esp + 0x64], 0
je 0x40c6b5
mov edx, dword [eax]
push eax
call dword [edx + 8]
add esi, 8
push esi
call dword [0x41015c]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4c]
pop ebx
call fcn.0040e969
add esp, 0x58
ret