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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x8c60bf
sub esp, 0xa0
mov edx, dword [esp + 0xd0]
test edx, edx
je 0x8c56a7
mov ecx, dword [esp + 0xd4]
cmp ecx, 1
jb 0x8c60b4
mov eax, dword [esp + 0xd8]
dec eax
neg eax
sar eax, 0x1f
and eax, 8
mov edx, dword [esp + 0xd0]
add eax, edx
dec ecx
jmp 0x8c56b5
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0xb4]
mov dword [esp], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xbc]
mov dword [esp + 8], ebp
call fcn.0048e3e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0xdc]
cmp dword [0x1285ba8], ebx
je 0x8c5711
mov ebp, dword [esp + 0xe0]
mov esi, dword [esp + 0xe4]
jmp 0x8c5738
mov ebp, dword [esp + 0xe0]
cmp dword [0x1285bac], ebp
je 0x8c5729
mov esi, dword [esp + 0xe4]
jmp 0x8c5738
mov esi, dword [esp + 0xe4]
cmp dword [0x1285bb0], esi
je 0x8c5741
mov edi, dword [esp + 0x48]
lea esi, [edi + 1]
jmp 0x8c5745
mov esi, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], eax
mov edx, dword [eax + 0x48]
mov dword [esp], ecx
call edx
movzx eax, byte [esp + 4]
test al, al
je 0x8c5875
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x68]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
dec eax
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jge 0x8c5977
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x68]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
lea edi, [esp + 0x88]
xor eax, eax
call fcn.0045fc4a
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
mov ecx, dword [esp + 0xcc]
mov dword [esp + 4], ecx
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp], eax
call fcn.00409060
mov eax, dword [esp + 4]
lea ecx, [0x95c620]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00409060
mov eax, dword [esp + 4]
lea ecx, [0x95c620]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
lea edx, [0xa0fa6c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x34
lea edx, [esp + 0x88]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 3
call fcn.008c1480
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
jmp 0x8c5977
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x68]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x34]
cmp dword [esp + 4], eax
je 0x8c5973
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x68]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
lea edi, [esp + 0x88]
xor eax, eax
call fcn.0045fc4a
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
mov ecx, dword [esp + 0xcc]
mov dword [esp + 4], ecx
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00409060
mov eax, dword [esp + 4]
lea ecx, [0x95c620]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00409060
mov eax, dword [esp + 4]
lea ecx, [0x95c620]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
lea edx, [0xa0a6f2]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x2b
lea edx, [esp + 0x88]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 3
call fcn.008c1480
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
call fcn.008c8f20
movzx eax, byte [esp + 8]
test al, al
jne 0x8c5a63
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x70]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov ecx, dword [esp + 0xc8]
mov dword [esp], ecx
mov edx, dword [esp + 0xcc]
mov dword [esp + 4], edx
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00409060
mov eax, dword [esp + 4]
lea ecx, [0x95c620]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
lea ecx, [0xa0b43a]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x2d
lea ecx, [esp + 0x78]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.008c1480
lea eax, [0x9e00a0]
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004480d0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
xor esi, esi
jmp 0x8c5ab4
mov edi, dword [esp + 0x3c]
lea esi, [edi + 1]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
mov eax, ebp
mov ebp, edi
mov dword [esp + 0x3c], esi
cmp ebp, esi
jle 0x8c5ba0
cmp esi, ecx
jge 0x8c5ba0
mov eax, dword [ebx + 0x44]
mov dword [esp], edx
mov dword [esp + 4], esi
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
cmp edx, ebx
jae 0x8c60ab
mov ebx, dword [esp + 0x74]
lea ebp, [ebx + edx*8]
mov esi, dword [ebp]
mov ebp, dword [ebp + 4]
mov edi, dword [esp + 0xa4]
mov dword [esp], edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 4], edi
mov edi, dword [esp + 0xac]
mov dword [esp + 8], edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
call fcn.008c6780
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
cmp ebx, ebp
jae 0x8c60a2
lea esi, [ebx + ebx*2]
mov edi, ebp
mov ebp, dword [esp + 0x6c]
mov dword [ebp + esi*4 + 8], edx
mov edx, dword [0x12ad060]
lea ebx, [ebp + esi*4]
mov dword [esp + 0x68], ebx
lea ebx, [ebp + esi*4 + 4]
test edx, edx
jne 0x8c5b85
mov dword [ebp + esi*4], eax
mov dword [ebp + esi*4 + 4], ecx
jmp 0x8c5a99
mov edx, edi
mov edi, dword [esp + 0x68]
call fcn.0045f9a0
mov edi, ebx
mov eax, ecx
call fcn.0045f9a0
mov edi, edx
jmp 0x8c5a99
mov eax, dword [ebx + 0x48]
mov dword [esp], edx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x8c5c1f
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x68]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x44]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
dec edx
mov dword [esp + 4], edx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x28]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xb0]
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0x74]
jmp 0x8c5fd6
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0xdc]
cmp dword [0x1285ba8], ecx
jne 0x8c5c58
mov edx, dword [esp + 0xe0]
cmp dword [0x1285bac], edx
jne 0x8c5c58
mov ebx, dword [esp + 0xe4]
cmp dword [0x1285bb0], ebx
je 0x8c5d82
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x68]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x44]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
dec edx
mov dword [esp + 4], edx
call ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x48]
mov edx, dword [esp + 8]
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp], ebp
call ecx
movzx eax, byte [esp + 4]
test al, al
je 0x8c5cf1
mov eax, dword [esp + 0x34]
lea ecx, [eax - 1]
mov edx, dword [esp + 0x38]
cmp edx, ecx
jle 0x8c5cd7
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x44]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x8c5cf9
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x28]
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
jmp 0x8c5cf9
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xa4]
mov dword [esp], edx
mov ebx, dword [esp + 0xdc]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xe0]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xe4]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.008c60d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
cmp ebx, ebp
jae 0x8c5f9a
lea ebx, [ebx + ebx*2]
mov esi, dword [esp + 0x6c]
mov dword [esi + ebx*4 + 8], edx
mov edx, dword [0x12ad060]
lea edi, [esi + ebx*4]
lea ebp, [esi + ebx*4 + 4]
test edx, edx
jne 0x8c5d72
mov dword [esi + ebx*4], eax
mov dword [esi + ebx*4 + 4], ecx
jmp 0x8c5d86
call fcn.0045f9a0
mov edi, ebp
mov eax, ecx
call fcn.0045f9a0
jmp 0x8c5d86
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.008cacd0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x6c], ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x64], esi
test eax, eax
je 0x8c5ee0
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], edx
nop
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xa4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [0x12ad060]
test ebx, ebx
jne 0x8c5e17
mov ebx, dword [esp + 0xc4]
mov dword [ebp + 0x10], ebx
jmp 0x8c5e28
lea ebx, [ebp + 0x10]
mov edi, ebx
mov eax, dword [esp + 0xc4]
call fcn.0045f9a0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 4], eax
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x8c5e87
mov ecx, dword [eax + 4]
jmp 0x8c5e89
mov ecx, eax
mov dword [esp + 0x80], ecx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
lea eax, [0x9f5f92]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x14
lea eax, [esp + 0x78]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 2
call fcn.008c1480
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x64]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.0048e3e0
mov eax, dword [esp + 0xc]
mov ecx, dword [0x128529c]
mov edx, dword [esp + 0x10]
cmp dword [0x1285298], eax
jne 0x8c5f1f
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00403760
movzx eax, byte [esp + 0xc]
test al, al
jne 0x8c5f2d
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x64]
mov ebp, dword [esp + 0x6c]
jmp 0x8c5f68
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 1
call fcn.0048aeb0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [0x9e00a0]
cmp ecx, edx
jne 0x8c5f84
mov esi, dword [eax]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], ebp
mov dword [esp + 0xf0], ebx
add esp, 0xa0
ret
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x95c760]
mov dword [esp + 8], eax
call fcn.00408da0
mov eax, ebx
mov ecx, ebp
call fcn.0045fa20
mov eax, dword [esp + 0x3c]
lea esi, [eax + 1]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0xb0]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0xac]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
cmp ebp, esi
jge 0x8c6089
jae 0x8c6099
lea esi, [edi + ebp*8]
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
call fcn.008c6780
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
cmp ebx, ebp
jae 0x8c6090
lea esi, [ebx + ebx*2]
mov edi, ebp
mov ebp, dword [esp + 0x6c]
mov dword [ebp + esi*4 + 8], edx
mov edx, dword [0x12ad060]
lea ebx, [ebp + esi*4]
mov dword [esp + 0x5c], ebx
lea ebx, [ebp + esi*4 + 4]
test edx, edx
jne 0x8c606e
mov dword [ebp + esi*4], eax
mov dword [ebp + esi*4 + 4], ecx
jmp 0x8c5fa3
mov edx, edi
mov edi, dword [esp + 0x5c]
call fcn.0045f9a0
mov edi, ebx
mov eax, ecx
call fcn.0045f9a0
mov edi, edx
jmp 0x8c5fa3
mov eax, ebp
jmp 0x8c5c23
mov eax, ebx
mov ecx, ebp
call fcn.0045fa20
mov eax, ebp
mov ecx, esi
call fcn.0045fa20
mov eax, ebx
mov ecx, ebp
call fcn.0045fa20
mov eax, edx
mov ecx, ebx
call fcn.0045fa20
mov eax, 1
call fcn.0045fa80
nop
call fcn.0045e560
jmp fcn.008c5650