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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x457788
sub esp, 0xa0
lea edi, [esp + 0xa8]
xor eax, eax
call fcn.004773d5
mov ecx, dword [esp + 0xa4]
jmp 0x4570f7
xor eax, eax
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
cmp edx, 2
jge 0x457578
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x457518
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x457123
mov dword [ecx + 0xc], 0
mov edi, edx
jmp 0x45715b
mov edx, dword [ecx + 8]
mov ebp, dword [ecx]
dec edx
dec ebx
mov esi, edx
neg edx
sar edx, 0x1f
and edx, 4
mov edi, dword [ebp]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], esi
mov ebx, dword [0x8c88d8]
add edx, ebp
test ebx, ebx
je 0x457159
mov ebx, edi
call fcn.004772f0
mov dword [edi], edx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov edi, ebx
mov dword [ecx], edx
mov dword [esp + 0x2c], edi
mov dword [esp], edi
call fcn.00473770
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004580d0
movzx eax, byte [esp + 8]
test al, al
jne 0x45728c
mov eax, dword [0x8a6328]
test eax, eax
jne 0x4571a6
mov ecx, dword [esp + 0xa4]
jmp 0x4570f5
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004577a0
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov ebx, dword [esp + 8]
lea ebp, [ecx + ebx]
mov esi, dword [eax + 0x10]
mov edi, dword [esp + 4]
cmp edx, ebp
jae 0x457213
mov dword [esp + 0x70], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ecx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
lea eax, [0x6ec0e0]
mov dword [esp + 0x10], eax
call fcn.00472770
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x70], esi
lea eax, [0x6ec0e0]
mov dword [esp], eax
sub ebp, ecx
sub edx, ecx
neg edx
sar edx, 0x1f
imul ecx, ecx, 0x2c
and edx, ecx
lea ecx, [esi + edx]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
call fcn.0046f6a0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xa4]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x18], eax
mov eax, dword [0x8c88d8]
test eax, eax
jne 0x457273
mov eax, dword [esp + 0x70]
jmp 0x457284
call fcn.004772f0
mov eax, dword [esp + 0x70]
mov dword [edi], eax
mov edx, dword [ecx + 0x10]
mov dword [edi + 4], edx
mov dword [ecx + 0x10], eax
jmp 0x4570f5
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
call fcn.00458100
mov eax, dword [esp + 8]
mov dword [esp + 0x64], eax
mov dword [esp], eax
call fcn.00458020
mov eax, dword [esp + 4]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jbe 0x4572c5
lea edi, [ecx - 1]
jmp 0x4572c7
mov edi, ecx
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
call fcn.00473c00
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebp
lea ecx, [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00473cd0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
movzx edx, byte [esp + 0x18]
mov byte [esp + 0x23], dl
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x34], ebx
lea ebp, [esp + 0x58]
mov dword [esp], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x40]
mov dword [esp + 8], esi
call fcn.00458ee0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x45736b
mov eax, dword [esp + 0x64]
jmp 0x4573af
lea eax, [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
call fcn.00458e50
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x4576fe
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xa4]
mov dword [ecx + 0xc], eax
jmp 0x4573ad
mov eax, dword [esp + 0xa4]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], ecx
movzx edx, byte [esp + 0x23]
mov byte [esp + 0xc], dl
call fcn.00473850
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0045e560
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4c], ecx
lea edi, [esp + 0x74]
mov edx, eax
xor eax, eax
call fcn.004773d5
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x14]
inc ebx
mov ebp, dword [ecx + 0x10]
cmp edx, ebx
jae 0x4574c4
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x6ec0e0]
mov dword [esp + 0x10], eax
call fcn.00472770
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xa4]
mov dword [ebx + 0x18], eax
mov eax, dword [0x8c88d8]
test eax, eax
je 0x4574b4
call fcn.004772f0
mov dword [edi], ecx
mov eax, dword [ebx + 0x10]
mov dword [edi + 4], eax
mov dword [ebx + 0x10], ecx
xor eax, eax
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0xa4]
mov dword [ecx + 0x14], ebx
mov edx, dword [0x8c88d8]
imul ebx, ebx, 0x2c
lea edi, [ebx + ebp - 0x2c]
test edx, edx
je 0x457503
mov dword [esp + 0x70], edi
lea eax, [0x6ec0e0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x74]
mov dword [esp + 8], eax
call fcn.004120e0
xor eax, eax
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0x70]
lea esi, [esp + 0x74]
call fcn.00477882
mov ecx, dword [esp + 0xa4]
jmp 0x4570f5
test edx, edx
je 0x457569
cmp edx, 1
jne 0x457564
lea edi, [esp + 0xa8]
call fcn.00477882
mov eax, dword [esp + 0xa4]
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 2
mov ecx, dword [0x8c88d8]
lea edx, [eax + 0x1c]
test ecx, ecx
je 0x45755c
call fcn.004772f0
mov dword [edi], edx
mov ecx, dword [eax + 0x10]
mov dword [edi + 4], ecx
mov dword [eax + 0x10], edx
jmp 0x45764e
cmp edx, 2
jmp 0x457578
mov byte [esp + 0xd4], 0
add esp, 0xa0
ret
jne 0x45760a
lea edi, [esp + 0xa8]
call fcn.00477882
mov eax, dword [0x8c88d8]
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx + 0x10]
lea edi, [ecx + 0x1c]
lea esi, [edx + 0x2c]
lea edx, [ecx + 0x1c]
test eax, eax
je 0x4575eb
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edx
mov eax, edi
call fcn.004772f0
mov dword [edi], edx
mov ebx, dword [ecx + 0x10]
mov dword [edi + 4], ebx
lea ebx, [0x6ec0e0]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004120e0
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
call fcn.00477882
mov eax, dword [esp + 0xa4]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], 2
mov dword [eax + 0x10], edx
jmp 0x45764e
lea edi, [esp + 0xa8]
call fcn.00477882
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x18]
dec ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and ecx, 0x2c
add ecx, dword [eax + 0x10]
dec dword [eax + 0x14]
mov dword [eax + 0x18], edx
mov edx, dword [0x8c88d8]
test edx, edx
je 0x45764b
call fcn.004772f0
mov dword [edi], ecx
mov edx, dword [eax + 0x10]
mov dword [edi + 4], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xd0]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x4c], eax
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004580d0
movzx eax, byte [esp + 8]
test al, al
je 0x4576c3
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xa8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 0
call fcn.004738b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x4c]
test eax, eax
setne al
mov byte [esp + 0xd4], al
add esp, 0xa0
ret
lea eax, [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call fcn.00458e50
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00458e20
movzx eax, byte [esp + 8]
test al, al
je 0x4573a4
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4573ab
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
lea ebx, [edx + 1]
cmp dword [ecx], ebx
je 0x4573ab
mov dword [esp + 0x44], ebx
lea eax, [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call fcn.00473cd0
cmp byte [esp + 0x18], 0x16
je 0x457769
xor eax, eax
jmp 0x45777b
movzx eax, byte [esp + 0x23]
mov byte [esp], al
call fcn.0045fff0
movzx eax, byte [esp + 4]
test al, al
jne 0x4576da
jmp 0x457394
call fcn.00475ee0
jmp fcn.004570c0