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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x54]
cmp eax, dword [ecx + 8]
jbe 0x6589de23
sub esp, 0xd4
lea edi, [esp + 0xe0]
xor eax, eax
call fcn.6585fcd9
lea ecx, [0x658d6f00]
mov dword [esp], ecx
call fcn.6580b9e0
mov ecx, dword [esp + 4]
mov dword [esp + 0x7c], ecx
lea edi, [esp + 0xb0]
xor eax, eax
call fcn.6585fce7
mov ecx, dword [esp + 0xdc]
test ecx, ecx
jne 0x6589d818
mov eax, dword [esp + 0x7c]
xor ecx, ecx
jmp 0x6589d999
lea eax, [esp + 0xb0]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.6589cd40
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xc]
test eax, eax
je 0x6589d990
test cl, cl
je 0x6589d8fc
mov ebp, dword [esp + 0x7c]
mov eax, ebp
mov ebp, dword [ebp]
test ebp, 7
jne 0x6589d8c1
mov ebp, dword [eax + 8]
mov ecx, ebp
mov ebp, dword [eax + 4]
mov edx, ebp
mov ebp, dword [eax + 0xc]
mov ebx, ebp
lea ebp, [ecx + 1]
cmp ebx, ebp
jae 0x6589d8b7
lea eax, [0x658d3c20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.65849be0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x7c]
mov dword [ebx + 0xc], edx
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x6589d8ab
mov dword [ebx + 4], eax
jmp 0x6589d8b3
lea edi, [ebx + 4]
call fcn.6585fb10
mov edx, eax
mov eax, ebx
lea ebp, [ecx + 1]
mov dword [eax + 8], ebp
mov byte [edx + ecx], 0
mov ebp, dword [eax + 4]
mov ecx, dword [eax + 8]
mov edx, ebp
mov ebp, dword [eax]
mov ebx, ebp
shr ebp, 3
cmp ecx, ebp
jbe 0x6589de1b
mov ecx, ebp
movzx ebp, byte [edx + ebp]
and ebx, 7
mov esi, ecx
mov ecx, ebx
mov edi, ebp
mov ebp, 1
shl ebp, cl
or edi, ebp
xchg edi, eax
mov byte [edx + esi], al
xchg edi, eax
inc dword [eax]
jmp 0x6589d98c
nop
mov ebp, dword [esp + 0x7c]
mov eax, ebp
mov ebp, dword [ebp]
test ebp, 7
jne 0x6589d97a
mov ebp, dword [eax + 8]
mov ecx, ebp
mov ebp, dword [eax + 4]
mov edx, ebp
mov ebp, dword [eax + 0xc]
mov ebx, ebp
lea ebp, [ecx + 1]
cmp ebx, ebp
jae 0x6589d970
lea eax, [0x658d3c20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.65849be0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x7c]
mov dword [ebx + 0xc], edx
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x6589d964
mov dword [ebx + 4], eax
jmp 0x6589d96c
lea edi, [ebx + 4]
call fcn.6585fb10
mov edx, eax
mov eax, ebx
lea ebp, [ecx + 1]
mov dword [eax + 8], ebp
mov byte [edx + ecx], 0
mov ecx, dword [eax + 8]
mov ebp, dword [eax]
shr ebp, 3
cmp ecx, ebp
jbe 0x6589de14
inc dword [eax]
xor ecx, ecx
jmp 0x6589d999
mov eax, dword [esp + 0x7c]
mov ecx, 4
mov ebp, dword [esp + 0xd8]
mov edx, ecx
movzx ecx, byte [ebp + 0xc]
test cl, 1
je 0x6589d9b2
mov ecx, 0x34
jmp 0x6589d9b7
mov ecx, 0x24
mov ebx, ecx
movzx ecx, word [ebp + 0x20]
test cx, cx
jne 0x6589d9ca
mov esi, ebp
xor ecx, ecx
xor ebp, ebp
jmp 0x6589d9dd
movzx ecx, cx
mov esi, ebp
add ebp, ebx
cmp ecx, 0x100000
ja 0x6589de08
mov dword [esp + 0x28], ecx
mov dword [esp + 0x78], ebp
xor ebx, ebx
jmp 0x6589da05
mov ecx, dword [esp + 0x3c]
lea ebx, [ecx + 1]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0xd8]
mov edx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], edx
cmp ecx, ebx
jle 0x6589db10
mov dword [esp + 0x3c], ebx
mov eax, dword [ebp + ebx*4]
mov dword [esp + 0x84], eax
lea ecx, [esp + 0xb0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.6589cb30
mov eax, dword [esp + 8]
test eax, eax
jne 0x6589dae9
mov ebp, dword [esp + 0x84]
mov eax, ebp
movzx ebp, byte [ebp + 0xd]
mov ecx, dword [esp + 0x34]
mov edx, ebp
lea ebp, [ecx + ebp - 1]
neg edx
and edx, ebp
add edx, dword [eax]
mov ecx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
mov eax, dword [esp + 0x3c]
cmp eax, ecx
jae 0x6589de03
mov ebx, ebp
mov ebp, dword [ebp + eax*4]
mov esi, ebp
lea ebp, [ecx - 1]
cmp eax, ebp
jne 0x6589da8e
mov ebp, dword [esp + 0xb4]
jmp 0x6589da9d
lea ebp, [eax + 1]
cmp ecx, ebp
jbe 0x6589ddfc
mov ebp, dword [ebx + eax*4 + 4]
mov ecx, ebp
mov ebp, dword [esp + 0xb8]
mov ebx, ebp
mov ebp, dword [esp + 0xb0]
cmp ecx, ebx
ja 0x6589ddf5
cmp ecx, esi
jb 0x6589ddee
sub ecx, esi
sub ebx, esi
mov edi, ecx
lea ecx, [esi + esi*2]
neg ebx
shl ecx, 3
sar ebx, 0x1f
and ebx, ecx
lea ecx, [ebp + ebx]
test edi, edi
je 0x6589dda5
mov dword [esp + 0x40], edi
xor ebx, ebx
jmp 0x6589ddbe
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
call fcn.6589f530
mov eax, dword [esp + 0x34]
jmp 0x6589d9e9
nop
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x30], ecx
nop
lea edi, [esp + 0x8c]
mov ebx, eax
xor eax, eax
call fcn.6585fce7
mov ecx, dword [esp + 0x30]
lea ebp, [ecx + 3]
and ebp, 0xfffffffc
mov dword [esp + 0xa4], ebp
mov edi, ecx
movzx ecx, byte [esi + 0xc]
test cl, 1
je 0x6589db50
mov ecx, 0x34
jmp 0x6589db55
mov ecx, 0x24
mov dword [esp + 0x2c], ebp
movzx ebp, word [esi + 0x22]
and ebp, 0x7fff
test bp, bp
jne 0x6589db6e
xor esi, esi
xor ecx, ecx
jmp 0x6589dbc1
mov word [esp + 0x20], bp
movzx ebp, word [esi + 0x20]
mov word [esp + 0x22], bp
movzx ebx, word [esp + 0x20]
add ebp, ebx
movzx ebp, bp
mov ebx, ebp
lea ebp, [ecx + esi]
cmp ebx, 0x100000
ja 0x6589dd99
movzx edx, word [esp + 0x22]
movzx edx, dx
cmp edx, ebx
ja 0x6589dd90
sub ebx, edx
mov esi, ebx
neg ebx
shl edx, 2
sar ebx, 0x1f
and edx, ebx
add edx, ebp
mov ebx, dword [esp + 0x7c]
mov ecx, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], esi
mov dword [esp + 0x74], ecx
xor ebp, ebp
jmp 0x6589dbea
mov eax, dword [esp + 0x38]
lea ebp, [eax + 1]
xor eax, eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x7c]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
cmp ebp, esi
jge 0x6589dcc9
mov dword [esp + 0x38], ebp
mov eax, dword [ecx + ebp*4]
mov dword [esp + 0x80], eax
lea edx, [esp + 0x8c]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.6589cb30
mov eax, dword [esp + 8]
test eax, eax
jne 0x6589dca6
mov ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x98]
mov eax, dword [esp + 0x38]
cmp eax, ecx
jae 0x6589dd8b
mov ebp, dword [ebx + eax*4]
mov edx, ebp
lea ebp, [ecx - 1]
cmp eax, ebp
jne 0x6589dc4e
mov ebx, dword [esp + 0x90]
jmp 0x6589dc5d
lea ebp, [eax + 1]
cmp ecx, ebp
jbe 0x6589dd84
mov ebx, dword [ebx + eax*4 + 4]
mov ebp, dword [esp + 0x94]
mov ecx, ebx
mov ebx, dword [esp + 0x8c]
cmp ecx, ebp
ja 0x6589dd7d
cmp ecx, edx
jb 0x6589dd76
sub ecx, edx
mov esi, ecx
lea ecx, [edx + edx*2]
sub ebp, edx
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl ecx, 3
sar ebp, 0x1f
and ebp, ecx
lea ecx, [ebx + ebp]
test esi, esi
je 0x6589dbcd
xor edx, edx
jmp 0x6589dd45
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 8], eax
call fcn.6589f530
jmp 0x6589dbcd
mov ecx, dword [esp + 0x2c]
sub dword [esp + 0xa4], ecx
mov ebp, edi
lea edi, [esp + 0xe0]
call fcn.6585fcd9
lea edi, [esp + 0xe0]
lea esi, [esp + 0xb0]
call fcn.658601a6
lea edi, [esp + 0x104]
lea esi, [esp + 0x8c]
call fcn.658601a6
mov dword [esp + 0x128], ebp
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x12c], ecx
lea ecx, [edx + 3]
and ecx, 0xfffffffc
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], ebx
add esp, 0xd4
ret
mov ebp, dword [esp + 0x88]
add ebp, 0x18
mov esi, ebx
mov edx, ecx
mov ecx, ebp
mov dword [esp + 0x88], ecx
lea edi, [esp + 0x44]
mov ebx, esi
mov esi, ecx
call fcn.658601c4
cmp dword [esp + 0x44], 3
je 0x6589dd6c
lea ecx, [edx + 1]
cmp ebx, ecx
jg 0x6589dd35
jmp 0x6589dbcd
nop
xor eax, eax
mov ecx, eax
call fcn.6585fb90
mov eax, edx
call fcn.6585fbf0
mov edx, ebp
call fcn.6585fbd0
mov eax, ebp
call fcn.6585fb90
call fcn.6585fb90
mov eax, edx
mov ecx, ebx
call fcn.6585fc40
mov edx, ebx
mov ebx, 0x100000
call fcn.6585fc10
mov eax, edx
jmp 0x6589d9e9
mov ebx, ebp
mov ebp, dword [esp + 0x88]
add ebp, 0x18
mov edi, ebx
mov ebx, ecx
mov ecx, ebp
mov dword [esp + 0x88], ecx
mov esi, ecx
lea edi, [esp + 0x5c]
call fcn.658601c4
cmp dword [esp + 0x5c], 3
je 0x6589dde4
lea ecx, [ebx + 1]
mov ebp, dword [esp + 0x40]
cmp ebp, ecx
jg 0x6589ddac
jmp 0x6589dda5
nop
xor eax, eax
mov ecx, eax
call fcn.6585fb90
mov eax, esi
call fcn.6585fbf0
mov edx, ebx
call fcn.6585fbd0
mov eax, ebp
call fcn.6585fb90
call fcn.6585fb90
mov edx, ecx
mov ebx, 0x100000
call fcn.6585fc10
mov eax, ebp
call fcn.6585fba0
mov eax, ebp
call fcn.6585fba0
nop
call fcn.6585e6e0
jmp fcn.6589d7b0