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

Disassembly:
push 0xffffffffffffffff
push 0x668bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x70903c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70903c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x589bca
cmp ecx, ebx
je 0x589bca
lea ecx, [esp + 0x20]
call fcn.00471200
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x88], ebx
lea ebp, [edi + 4]
jb 0x589bab
mov eax, dword [ebp]
jmp 0x589bad
mov eax, ebp
push ecx
push ebx
push eax
mov ecx, esi
call fcn.00495fd0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
jge 0x589bee
lea ecx, [esp + 0x20]
call fcn.0044b160
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00613e6e
add esp, 0x78
ret
mov dword [esp + 0x18], ebx
inc dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.00543a70
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ebx, esi
jb 0x589c14
mov ecx, dword [ebp]
jmp 0x589c16
mov ecx, ebp
mov edx, dword [esp + 0x1c]
push eax
add edx, esi
push edx
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00495fd0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
jge 0x589bf2
xor edi, edi
cmp dword [esp + 0x18], edi
je 0x589bc1
xor ebx, ebx
lea esp, [esp]
push edi
push 0x6b4bdc
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], edi
mov byte [esp + 0x6c], 0
call fcn.00417040
mov byte [esp + 0x88], 1
cmp ebx, edi
jne 0x589cd3
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x2c]
sar eax, 2
test eax, eax
ja 0x589c83
call fcn.00615e0c
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x4c]
push eax
call fcn.00494720
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 2
call fcn.00417560
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0x88], 1
jb 0x589db3
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00613a18
add esp, 4
jmp 0x589db3
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
lea esi, [ebx - 1]
sar edx, 2
cmp esi, edx
jb 0x589cea
call fcn.00615e0c
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + esi*4]
add eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x3c]
jae 0x589db3
mov edx, dword [esp + 0x30]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jne 0x589d45
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00494720
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 3
call fcn.00417560
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call fcn.005d2b30
jmp 0x589db3
cmp ebx, edi
jbe 0x589db3
push esi
lea ecx, [esp + 0x24]
call fcn.004db6d0
push ebx
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.004db6d0
push esi
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.004db6d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp]
mov eax, dword [eax]
sub edx, ecx
sub edx, dword [edi]
add eax, ecx
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00494720
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 4
call fcn.00417560
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call fcn.005d2b30
xor edi, edi
cmp byte [esp + 0x9c], 0
jne 0x589dc3
cmp dword [esp + 0x74], edi
jbe 0x589dd1
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x60]
push edx
call fcn.0044fd10
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 0
jb 0x589ded
mov eax, dword [esp + 0x64]
push eax
call fcn.00613a18
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
jbe 0x589c40
cmp ecx, edi
je 0x589e10
push ecx
call fcn.00613a18
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.00613a18
mov eax, dword [esp + 0x1c]
add esp, 4
jmp 0x589bcc