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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xdc]
cmp eax, dword [ecx + 8]
jbe 0x589aea
sub esp, 0x15c
lea eax, [0x663720]
mov dword [esp], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00442930
mov eax, dword [esp + 0xc]
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0x168]
test ecx, ecx
jg 0x589972
mov ebx, dword [esp + 0x160]
mov ebp, dword [ebx + 0x28]
movzx esi, byte [ebp + 0x50]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x589969
lea edi, [esp + 0xb8]
xor eax, eax
call fcn.0045af8b
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x58995e
mov eax, dword [ecx]
mov edx, ecx
call eax
lea edi, [esp + 0xb8]
mov esi, esp
call fcn.0045b46e
call fcn.0040bf90
mov eax, dword [esp]
mov dword [esp + 0xa8], eax
call fcn.0040bf90
mov eax, dword [esp]
mov dword [esp + 0xa4], eax
lea ecx, [0x64c220]
mov dword [esp], ecx
call fcn.0040b4f0
mov edi, dword [esp + 4]
mov eax, dword [0x8326a0]
test eax, eax
jne 0x589936
mov ecx, dword [esp + 0xa8]
mov dword [edi], ecx
mov ecx, dword [esp + 0xa4]
mov dword [edi + 4], ecx
mov dword [esp + 0x84], edi
lea edi, [esp + 0xcc]
xor eax, eax
call fcn.0045af83
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0x28]
mov edx, dword [edx + 0x30]
mov dword [esp + 0xd8], edx
lea edi, [esp + 0xdc]
lea esi, [esp + 0xb8]
call fcn.0045b46e
mov ecx, dword [esp + 0x160]
mov edx, dword [ecx + 0x28]
mov ebx, dword [edx + 0x40]
mov edx, dword [edx + 0x44]
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0x168]
cmp edx, 1
jb 0x589ad6
lea eax, [edx - 1]
mov dword [esp + 0x80], eax
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, 4
mov ebp, dword [esp + 0xac]
add eax, ebp
mov dword [esp + 0xa0], eax
xor esi, esi
jmp 0x589624
mov dword [esp + 0x7c], esi
mov ecx, dword [eax + esi*4]
mov edx, dword [esp + 0xd4]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.005605c0
mov eax, dword [esp + 0x7c]
lea esi, [eax + 1]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x168]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0xac]
cmp ebx, esi
jg 0x5895e0
mov eax, dword [ebp]
mov dword [esp], eax
lea edi, [esp + 4]
lea esi, [esp + 0xcc]
call fcn.0045b41e
call fcn.00564950
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov esi, ebp
mov ebp, dword [esp + 0x160]
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x60], ebx
mov edx, dword [0x8326a0]
test edx, edx
jne 0x589923
mov dword [ebp + 0x58], ecx
test eax, eax
jne 0x5898eb
mov ecx, dword [esp + 0x168]
test ecx, ecx
jbe 0x589acf
mov eax, dword [esp + 0xac]
mov ebx, dword [eax]
mov ebx, dword [ebx + 0x50]
test ebx, ebx
je 0x589823
mov esi, dword [ebx + 8]
cmp esi, 0x188a5798
jne 0x5898b1
lea esi, [0x63b260]
cmp ebx, esi
jne 0x589823
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x54], ecx
mov ebx, dword [0x8326a0]
test ebx, ebx
jne 0x589816
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x28]
mov edx, dword [eax + 0x28]
test edx, edx
jne 0x58978d
mov eax, dword [ebp + 0x28]
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x58970b
mov dword [esp + 0x170], 0
mov dword [esp + 0x174], 0
add esp, 0x15c
ret
mov dword [esp], ebp
call fcn.00583d50
lea esi, [esp + 4]
lea edi, [esp + 0x100]
call fcn.0045b3ba
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx + 0x2c]
mov edi, esp
lea esi, [esp + 0x100]
call fcn.0045b3ba
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
test eax, eax
je 0x5896ee
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x160]
mov dword [esp], eax
mov byte [esp + 4], 0x2a
call fcn.00581150
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x174], eax
add esp, 0x15c
ret
mov eax, dword [ebp + 0x58]
mov ebx, dword [ebp + 0x5c]
mov esi, dword [ebp + 0x60]
mov edi, dword [esp + 0x164]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x16c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x5897d7
mov ebp, dword [esp + 0x160]
jmp 0x5896e4
mov dword [esp + 0x94], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x160]
mov dword [esp], eax
mov byte [esp + 4], 0x2a
call fcn.00581150
mov eax, dword [esp + 0x74]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x174], eax
add esp, 0x15c
ret
lea edi, [ebp + 0x4c]
call fcn.0045ace0
jmp 0x5896d6
mov dword [esp], ebp
mov byte [esp + 4], 0x2b
call fcn.00581150
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov eax, dword [esp + 0xac]
mov eax, dword [eax]
mov ecx, dword [eax + 0x50]
mov eax, dword [eax + 0x54]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
lea eax, [0x682d94]
mov dword [esp], eax
mov dword [esp + 4], 0x48
lea eax, [esp + 0xb0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a95f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], ecx
add esp, 0x15c
ret
cmp esi, 0x2fd00e80
jne 0x5898cc
lea esi, [0x65b2e0]
cmp ebx, esi
je 0x5896bf
jmp 0x589823
cmp esi, 0xcc456746
jne 0x589823
lea esi, [0x640a80]
cmp ebx, esi
je 0x5896bf
jmp 0x589823
mov dword [esp + 0x9c], esi
mov dword [esp + 0x78], eax
mov dword [esp], ebp
mov byte [esp + 4], 0x2a
call fcn.00581150
mov eax, dword [esp + 0x78]
mov dword [esp + 0x170], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x174], eax
add esp, 0x15c
ret
lea edi, [ebp + 0x58]
mov edx, eax
mov eax, ecx
call fcn.0045ace0
mov eax, edx
jmp 0x589677
mov eax, dword [esp + 0xa8]
call fcn.0045ace0
lea ecx, [edi + 4]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0xa4]
call fcn.0045ace0
mov edi, edx
jmp 0x589540
lea ecx, [0x689910]
jmp 0x5894db
test ecx, ecx
mov ebp, ebx
jmp 0x589688
xor edx, edx
mov ebx, dword [esp + 0x164]
jmp 0x58998b
mov eax, dword [esp + 0x98]
add eax, 0xc
mov edx, esi
mov ebx, eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x68], edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov ebp, dword [ebx + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.0056a740
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x589a07
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x168]
cmp eax, ebx
jae 0x589ae2
mov ebp, dword [esp + 0xac]
lea edi, [ebp + eax*4]
mov esi, dword [0x8326a0]
test esi, esi
jne 0x5899fa
mov dword [ebp + eax*4], ecx
lea esi, [eax + 1]
cmp esi, ebx
jl 0x58997d
mov eax, ebp
mov ecx, ebx
jmp 0x5894aa
mov edx, eax
mov eax, ecx
call fcn.0045ace0
mov eax, edx
jmp 0x5899ea
mov dword [esp + 0x70], eax
mov dword [esp + 0x90], edx
mov eax, dword [esp + 0x160]
mov dword [esp], eax
mov byte [esp + 4], 0x2a
call fcn.00581150
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x67f893]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x2e
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.00445d20
mov eax, dword [esp + 0x14]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], ecx
lea edx, [0x63eca0]
mov dword [esp], edx
call fcn.0040b4f0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x64]
mov dword [edi + 4], eax
mov eax, dword [0x8326a0]
test eax, eax
jne 0x589ac1
mov eax, dword [esp + 0x88]
mov dword [edi], eax
lea eax, [0x6c8150]
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], edi
add esp, 0x15c
ret
mov eax, dword [esp + 0x88]
call fcn.0045ace0
jmp 0x589aa6
xor eax, eax
call fcn.0045ad60
mov eax, 1
mov ecx, edx
call fcn.0045adc0
mov ecx, ebx
call fcn.0045ad60
nop
call fcn.00459790
jmp fcn.00589450