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

Disassembly:
push 0xffffffffffffffff
push 0x43c083
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a5d0]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
mov ebx, edx
mov esi, dword [ebx + 0x10]
mov edi, ecx
mov dword [esp + 0x18], ebx
cmp dword [ebx + 0xc], esi
jbe 0x40c077
call fcn.00425fb3
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], edx
cmp edx, dword [ebx + 0x10]
jbe 0x40c092
call fcn.00425fb3
mov edx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x3c]
mov ecx, ebx
mov eax, dword [ecx]
push esi
push edx
push eax
lea ebx, [esp + 0x48]
mov esi, ecx
call fcn.0040ee10
mov eax, dword [edi + 0x14]
test eax, eax
jbe 0x40c10f
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
jbe 0x40c10f
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 1
mov dword [esp + 0x48], ebx
mov dword [esp + 0xbc], ebx
cmp dword [edi + 0x18], 8
jb 0x40c0ed
mov edi, dword [edi + 4]
jmp 0x40c0f0
add edi, 4
push edi
lea eax, [esp + 0x4c]
call fcn.0040e420
cmp eax, ebx
je 0x40c116
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x40c10f
push eax
call fcn.00425fce
add esp, 4
xor al, al
jmp 0x40c550
mov eax, dword [ebp + 0x14]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00424be9
mov esi, eax
mov eax, dword [ebp + 0x14]
add esp, 4
lea ecx, [esi + eax*2]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], ecx
cmp esi, ebx
je 0x40c0fe
cmp dword [ebp + 0x18], 8
jb 0x40c152
mov ebp, dword [ebp + 4]
jmp 0x40c155
add ebp, 4
push ebp
inc eax
push eax
push esi
call fcn.00426d0f
add esp, 0xc
lea edx, [esp + 0x68]
push edx
call fcn.0040eca0
mov byte [esp + 0xbc], 1
mov ebp, esi
mov dword [esp + 0x40], ebx
lea esp, [esp]
lea eax, [esp + 0x40]
push eax
push ebp
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x74]
call fcn.0040e560
cmp eax, ebx
je 0x40c4fe
lea edx, [esp + 0x20]
push edx
call fcn.0041a620
xor edi, edi
mov byte [esp + 0xbc], 2
lea ebp, [edi + 7]
cmp edi, dword [esp + 0x68]
jae 0x40c485
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + edi*8]
mov ecx, dword [ecx + edi*8 + 4]
test eax, eax
je 0x40c23d
test ecx, ecx
je 0x40c23d
sub ecx, eax
sar ecx, 1
xor edx, edx
push ecx
lea esi, [esp + 0x94]
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], dx
call fcn.004085a0
mov eax, esi
push eax
lea ebx, [esp + 0x24]
mov byte [esp + 0xc0], 3
call fcn.0040e370
mov byte [esp + 0xbc], 2
cmp dword [esp + 0xa8], 8
jb 0x40c233
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004258ad
add esp, 4
inc edi
cmp edi, 1
jl 0x40c1b3
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0xc]
cmp esi, dword [eax + 0x10]
jbe 0x40c24e
call fcn.00425fb3
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [esp + 0x38], eax
mov ebp, esi
lea ebx, [ebx]
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x40c271
call fcn.00425fb3
mov ecx, dword [esp + 0x38]
mov eax, dword [edi]
test ecx, ecx
je 0x40c27f
cmp ecx, eax
je 0x40c284
call fcn.00425fb3
cmp ebp, esi
mov esi, dword [esp + 0x2c]
je 0x40c40d
mov byte [esp + 0x17], 1
cmp esi, dword [esp + 0x30]
jbe 0x40c2a0
call fcn.00425fb3
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
cmp dword [esp + 0x2c], edi
jbe 0x40c2b3
call fcn.00425fb3
test ebx, ebx
je 0x40c2bd
cmp ebx, dword [esp + 0x20]
je 0x40c2c2
call fcn.00425fb3
cmp esi, edi
je 0x40c375
test ebx, ebx
jne 0x40c2ec
call fcn.00425fb3
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40c2df
call fcn.00425fb3
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x40c2f0
mov edi, dword [eax]
jmp 0x40c2f2
mov eax, dword [ebx]
jmp 0x40c2d5
mov edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40c316
call fcn.00425fb3
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40c30b
call fcn.00425fb3
cmp dword [ebp + 0x18], 8
jb 0x40c31a
mov eax, dword [ebp + 4]
jmp 0x40c31d
mov eax, dword [eax]
jmp 0x40c301
lea eax, [ebp + 4]
push edi
push eax
call fcn.00427648
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40c334
mov byte [esp + 0x17], al
test ebx, ebx
jne 0x40c36d
call fcn.00425fb3
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40c349
call fcn.00425fb3
mov eax, dword [esp + 0x38]
add esi, 0x1c
test eax, eax
jne 0x40c371
call fcn.00425fb3
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40c365
call fcn.00425fb3
add ebp, 0x1c
jmp 0x40c2a4
mov eax, dword [ebx]
jmp 0x40c33f
mov eax, dword [eax]
jmp 0x40c35b
cmp byte [esp + 0x17], 0
je 0x40c260
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x44]
jae 0x40c48f
mov byte [esp + 0xbc], 1
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov ebp, eax
cmp esi, ebx
je 0x40c3e7
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x40c3da
add esi, 0x18
lea ecx, [ecx]
cmp dword [esi], 8
jb 0x40c3c1
mov ecx, dword [esi - 0x14]
push ecx
call fcn.004258ad
add esp, 4
xor edx, edx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], dx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x40c3b0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004258ad
add esp, 4
mov edx, dword [esp + 0x20]
xor eax, eax
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.004258ad
mov esi, dword [esp + 0x20]
add esp, 4
xor ebx, ebx
jmp 0x40c180
cmp esi, dword [esp + 0x30]
jbe 0x40c418
call fcn.00425fb3
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x2c], ebx
jbe 0x40c42f
call fcn.00425fb3
test edi, edi
je 0x40c439
cmp edi, dword [esp + 0x20]
je 0x40c43e
call fcn.00425fb3
cmp esi, ebx
je 0x40c380
test edi, edi
jne 0x40c47d
call fcn.00425fb3
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40c45b
call fcn.00425fb3
push esi
mov ebx, ebp
call fcn.0040e370
test edi, edi
jne 0x40c481
call fcn.00425fb3
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40c478
call fcn.00425fb3
add esi, 0x1c
jmp 0x40c420
mov eax, dword [edi]
jmp 0x40c451
mov eax, dword [edi]
jmp 0x40c46e
mov eax, 0x80004005
call fcn.0040bf60
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x40c4dd
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x40c4d0
add esi, 0x18
cmp dword [esi], 8
jb 0x40c4b3
mov eax, dword [esi - 0x14]
push eax
call fcn.004258ad
add esp, 4
xor ecx, ecx
mov dword [esi], 7
mov dword [esi - 4], 0
mov word [esi - 0x14], cx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x40c4a2
mov eax, dword [esp + 0x2c]
push eax
call fcn.004258ad
add esp, 4
mov ecx, dword [esp + 0x20]
xor eax, eax
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.004258ad
mov esi, dword [esp + 0x20]
add esp, 4
xor ebx, ebx
push esi
call fcn.00425fc3
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, ebx
je 0x40c51b
push eax
call fcn.00425fce
add esp, 4
mov edx, dword [esp + 0x78]
push edx
call fcn.00425fc3
mov eax, dword [esp + 0x78]
add esp, 4
push eax
mov dword [esp + 0x7c], ebx
call fcn.00425fc3
mov eax, dword [esp + 0x50]
add esp, 4
mov dword [esp + 0x74], ebx
cmp eax, ebx
je 0x40c54e
push eax
call fcn.00425fce
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00425821
add esp, 0xac
ret