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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x74]
cmp eax, dword [ecx + 8]
jbe 0x6589a498
sub esp, 0xf4
mov eax, dword [esp + 0xf8]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x658999f9
mov ecx, dword [eax + 0x60]
test ecx, ecx
jne 0x658999f9
mov ecx, dword [eax + 0xa0]
test ecx, ecx
jne 0x658999f9
lea eax, [0x658d57e0]
mov dword [esp], eax
call fcn.6580b9e0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x658e446d]
mov dword [eax], ecx
lea ecx, [0x6599c880]
mov edx, dword [esp + 0xf8]
mov dword [edx + 0x60], ecx
mov ebx, dword [0x65a345b0]
test ebx, ebx
jne 0x658999ef
mov dword [edx + 0x64], eax
jmp 0x65899a01
lea edi, [edx + 0x64]
call fcn.6585fb10
jmp 0x65899a01
lea ecx, [0x6599c880]
mov edx, eax
mov eax, dword [edx + 0x60]
test eax, eax
jne 0x65899a12
mov eax, dword [edx + 0xa0]
test eax, eax
je 0x65899a2a
mov eax, dword [edx + 0x74]
mov dword [esp + 0xa0], eax
mov ecx, dword [edx + 0x78]
mov dword [esp + 0x4c], ecx
xor ebx, ebx
jmp 0x6589a408
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov ebx, dword [edx + 0x20]
mov ebp, dword [edx + 0x24]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.65899680
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test eax, eax
je 0x65899a8b
mov dword [esp + 0x74], edx
mov dword [esp + 0xb8], ecx
mov eax, dword [esp + 0xf8]
mov ebx, dword [eax + 0x74]
mov dword [esp + 0x98], ebx
mov ebp, dword [eax + 0x78]
mov dword [esp + 0x44], ebp
xor esi, esi
jmp 0x6589a372
mov edi, dword [esp + 0xf8]
mov dword [edi + 4], ebp
mov ecx, dword [0x65a345b0]
test ecx, ecx
jne 0x65899aa3
mov dword [edi], ebx
jmp 0x65899aaa
mov eax, ebx
call fcn.6585fb10
mov eax, dword [edi + 0x50]
test eax, eax
jne 0x65899ba9
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
test eax, eax
je 0x65899b02
mov eax, dword [eax + 0x14]
mov dword [esp], ecx
call eax
mov dword [esp], 0
call fcn.65806220
movzx eax, byte [esp + 8]
test al, al
je 0x65899afb
mov eax, dword [esp + 0xf8]
mov ecx, dword [eax + 0x74]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 0x78]
mov dword [esp + 0x3c], edx
xor ebx, ebx
jmp 0x6589a2bf
mov edi, dword [esp + 0xf8]
mov eax, dword [edi + 0x44]
lea ecx, [0x658df920]
mov dword [esp], ecx
mov dword [esp + 4], 0
add eax, 3
mov dword [esp + 0x58], eax
mov dword [esp + 8], eax
call fcn.65849aa0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xf8]
mov dword [ecx + 0x6c], 0
mov edx, dword [esp + 0x58]
mov dword [ecx + 0x70], edx
lea edi, [ecx + 0x68]
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x65899b51
mov dword [ecx + 0x68], eax
jmp 0x65899b56
call fcn.6585fb10
mov dword [esp + 0xb4], edi
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
lea ebx, [0x65980980]
mov dword [esp + 0xc4], ebx
lea ebx, [0x65980984]
mov dword [esp + 0xc8], ebx
lea ebx, [0x6598097c]
mov dword [esp + 0xcc], ebx
xor eax, eax
jmp 0x65899bf5
lea eax, [0x658d57e0]
mov dword [esp], eax
call fcn.6580b9e0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x15
lea ecx, [0x658e5b76]
mov dword [eax], ecx
lea ecx, [0x6599c880]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], eax
add esp, 0xf4
ret
mov ebx, dword [esp + 0x58]
lea eax, [ebx + 1]
mov ecx, edx
mov edi, dword [esp + 0xb4]
cmp eax, 3
jge 0x65899cf6
mov dword [esp + 0x58], eax
mov edx, dword [esp + eax*4 + 0xc4]
mov ebx, dword [edx]
mov dword [esp], ecx
call ebx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
test ecx, ecx
jne 0x65899ccc
mov ebx, dword [esp + 0xf8]
mov ebp, dword [ebx + 0x6c]
lea esi, [ebp + 1]
mov ecx, ebp
mov ebp, dword [ebx + 0x68]
mov edx, ebx
mov ebx, dword [ebx + 0x70]
cmp ebx, esi
jae 0x65899ca5
mov dword [esp + 0x64], eax
lea eax, [0x658df920]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
call fcn.65849be0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xf8]
mov dword [ebx + 0x70], edx
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x65899c91
mov dword [ebx + 0x68], eax
mov edi, dword [esp + 0xb4]
jmp 0x65899c9d
mov edi, dword [esp + 0xb4]
call fcn.6585fb10
mov edx, ebx
mov ebp, eax
mov eax, dword [esp + 0x64]
lea ebx, [ecx + 1]
mov dword [edx + 0x6c], ebx
mov ebx, dword [0x65a345b0]
lea edi, [ebp + ecx*4]
test ebx, ebx
jne 0x65899cc2
mov dword [ebp + ecx*4], eax
jmp 0x65899be5
call fcn.6585fb10
jmp 0x65899be5
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x70], ebp
mov eax, dword [esp + 0xf8]
mov ecx, dword [eax + 0x74]
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 0x78]
mov dword [esp + 0x34], edx
xor esi, esi
jmp 0x6589a229
mov eax, dword [ecx + 0x6c]
mov edx, dword [ecx + 0x44]
lea ebx, [eax + edx]
mov dword [esp + 0x58], ebx
mov ebp, dword [ecx + 0x70]
mov esi, dword [ecx + 0x68]
mov edi, dword [ecx + 0x40]
cmp ebp, ebx
jae 0x65899d5f
mov dword [esp + 0xb0], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
lea ecx, [0x658df920]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.65849be0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0xb0]
cmp eax, ebx
ja 0x6589a1ea
mov dword [esp + 0x54], ebp
mov dword [esp + 0xac], esi
lea ecx, [0x658df920]
mov dword [esp], ecx
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
shl eax, 2
sar ebp, 0x1f
and eax, ebp
add eax, esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
call fcn.6580fad0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0xf8]
mov dword [ecx + 0x6c], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 0x70], eax
mov eax, dword [0x65a345b0]
test eax, eax
jne 0x65899dcd
mov eax, dword [esp + 0xac]
mov dword [ecx + 0x68], eax
jmp 0x65899de0
mov edi, dword [esp + 0xb4]
mov eax, dword [esp + 0xac]
call fcn.6585fb10
mov dword [esp], ecx
call fcn.6589b3e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x65899f7a
mov ecx, dword [esp + 0xf8]
mov edx, dword [ecx + 0xc]
mov eax, esi
mov esi, dword [ecx + 8]
mov edi, ebp
mov ebp, dword [ecx + 0x10]
test edx, edx
jne 0x65899e62
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov edx, ebx
mov ebx, dword [ecx]
mov ebp, ecx
mov ecx, dword [ecx + 4]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ecx
mov ecx, ebp
mov ebx, edx
mov ebp, 1
mov edx, 1
lea esi, [esp + 0xbc]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], esi
lea edi, [esp + 0xd0]
xor eax, eax
call fcn.6585fce7
mov ecx, dword [esp + 0xf8]
mov eax, ebp
mov ebp, dword [ecx + 0x20]
mov edi, edx
mov edx, dword [ecx + 0x24]
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xd4], edx
mov edx, dword [ecx + 0x68]
mov ebp, dword [ecx + 0x6c]
mov esi, dword [ecx + 0x70]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], esi
mov dword [esp + 0xd8], ebx
mov edx, dword [esp + 0x54]
mov dword [esp + 0xdc], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0xe0], edx
mov edx, dword [ecx + 0x4c]
mov dword [esp + 0xf0], edx
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
lea edx, [esp + 0xd0]
mov dword [esp + 0x14], edx
call fcn.658839b0
mov ecx, dword [0x65a345b0]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test ecx, ecx
jne 0x65899f32
mov ecx, dword [esp + 0xf8]
mov dword [ecx + 0x50], eax
jmp 0x65899f41
mov ecx, dword [esp + 0xf8]
lea edi, [ecx + 0x50]
call fcn.6585fb10
test edx, edx
je 0x65899f68
mov dword [esp + 0x6c], ebp
mov dword [esp + 0xb8], ebx
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x80], eax
mov edx, dword [ecx + 0x78]
mov dword [esp + 0x2c], edx
xor esi, esi
jmp 0x6589a187
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x78], eax
mov edx, dword [ecx + 0x78]
mov dword [esp + 0x24], edx
xor ebx, ebx
jmp 0x65899fb9
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], edx
add esp, 0xf4
ret
mov dword [esp + 0x58], ebx
lea ecx, [eax + ebx*8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 0x58]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0x24]
cmp ebx, edx
jl 0x65899f8f
mov eax, dword [ecx + 0x90]
test eax, eax
je 0x6589a027
lea ecx, [0x658d1500]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.65804e30
mov eax, dword [esp + 8]
mov ecx, dword [0x65a345b0]
test ecx, ecx
jne 0x65899ff6
mov ecx, dword [esp + 0xf8]
mov dword [ecx + 0x98], eax
jmp 0x6589a008
mov ecx, dword [esp + 0xf8]
lea edi, [ecx + 0x98]
call fcn.6585fb10
mov dword [esp + 0x68], eax
mov edx, dword [ecx + 0x8c]
mov dword [esp + 0xa8], edx
mov ebx, dword [ecx + 0x90]
mov dword [esp + 0x58], ebx
xor ebp, ebp
jmp 0x6589a0a2
mov dword [esp], ecx
call fcn.6589a8b0
mov eax, dword [0x65a345b0]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x6589a04c
mov eax, dword [esp + 0xf8]
mov dword [eax + 0x9c], ecx
jmp 0x6589a060
mov edx, dword [esp + 0xf8]
lea edi, [edx + 0x9c]
mov eax, ecx
call fcn.6585fb10
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
add esp, 0xf4
ret
mov dword [esp], eax
call fcn.65840860
mov eax, dword [esp + 0x54]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x58]
cmp ebp, ebx
jge 0x6589a027
mov dword [esp + 0x54], ebp
mov eax, dword [edx + ebp*4]
mov dword [esp + 0x60], eax
lea ecx, [0x658d54e0]
mov dword [esp], ecx
call fcn.6580b9e0
mov eax, dword [esp + 4]
mov dword [esp + 0xa4], eax
lea ecx, [0x6589a4f0]
mov dword [eax], ecx
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x6589a0e5
mov edx, dword [esp + 0x68]
mov dword [eax + 4], edx
jmp 0x6589a0f1
lea edi, [eax + 4]
mov eax, dword [esp + 0x68]
call fcn.6585fb10
lea eax, [0x658d6a20]
mov dword [esp], eax
call fcn.6580b9e0
mov eax, dword [esp + 4]
lea ecx, [0x6589a4b0]
mov dword [eax], ecx
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x6589a12b
mov edx, dword [esp + 0xa4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
jmp 0x6589a07d
lea edi, [eax + 4]
mov edx, eax
mov eax, dword [esp + 0xa4]
call fcn.6585fb10
lea edi, [edx + 8]
mov eax, dword [esp + 0x60]
call fcn.6585fb10
mov eax, edx
jmp 0x6589a07d
mov dword [esp + 0x58], esi
lea ecx, [eax + esi*8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 0x58]
lea esi, [eax + 1]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x6c]
cmp esi, edx
jl 0x6589a14f
mov eax, dword [ecx + 0x80]
mov dword [esp + 0x7c], eax
mov ecx, dword [ecx + 0x84]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x6589a1d1
mov dword [esp + 0x58], edx
lea ecx, [eax + edx*8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebx, dword [ebx + 0x10]
mov dword [esp], ecx
call ebx
mov eax, dword [esp + 0x58]
lea edx, [eax + 1]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x6c]
cmp edx, ecx
jl 0x6589a1a3
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebp
add esp, 0xf4
ret
mov ecx, ebx
call fcn.6585fbf0
mov dword [esp + 0x58], esi
lea eax, [ecx + esi*8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], eax
call edx
mov eax, dword [esp + 0x58]
lea esi, [eax + 1]
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x70]
cmp esi, edx
jl 0x6589a1f1
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x84], ecx
mov eax, dword [eax + 0x84]
mov dword [esp + 0x30], eax
xor edx, edx
jmp 0x6589a279
mov dword [esp + 0x58], edx
lea eax, [ecx + edx*8]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [ebx + 0x10]
mov dword [esp], eax
call ebx
mov eax, dword [esp + 0x58]
lea edx, [eax + 1]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x70]
cmp edx, eax
jl 0x6589a248
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebp
add esp, 0xf4
ret
mov dword [esp + 0x58], ebx
lea eax, [ecx + ebx*8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], eax
call edx
mov eax, dword [esp + 0x58]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x3c]
cmp ebx, edx
jl 0x6589a292
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 0x84]
mov dword [esp + 0x38], edx
xor ebx, ebx
jmp 0x6589a30b
mov dword [esp + 0x58], ebx
lea eax, [ecx + ebx*8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], eax
call edx
mov eax, dword [esp + 0x58]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x38]
cmp ebx, edx
jl 0x6589a2de
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ecx
add esp, 0xf4
ret
mov dword [esp + 0x58], esi
lea eax, [ebx + esi*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 0x58]
lea esi, [eax + 1]
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x44]
cmp esi, ebp
jl 0x6589a33a
mov ebx, dword [eax + 0x80]
mov dword [esp + 0x94], ebx
mov eax, dword [eax + 0x84]
mov dword [esp + 0x40], eax
xor ebp, ebp
jmp 0x6589a3c2
mov dword [esp + 0x58], ebp
lea eax, [ebx + ebp*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 0x58]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x94]
cmp ebp, eax
jl 0x6589a391
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], edx
add esp, 0xf4
ret
mov dword [esp + 0x58], ebx
lea ecx, [eax + ebx*8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 0x58]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xf8]
cmp ebx, ecx
jl 0x6589a3db
mov eax, dword [edx + 0x80]
mov dword [esp + 0x9c], eax
mov ecx, dword [edx + 0x84]
mov dword [esp + 0x48], ecx
xor ebx, ebx
jmp 0x6589a454
mov dword [esp + 0x58], ebx
lea ecx, [eax + ebx*8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], ecx
call edx
mov eax, dword [esp + 0x58]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0xf8]
cmp ebx, ecx
jl 0x6589a427
mov eax, dword [edx + 0xa0]
mov ecx, dword [edx + 0xa4]
test eax, eax
je 0x6589a47d
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ecx
add esp, 0xf4
ret
mov eax, dword [edx + 0x60]
mov ecx, dword [edx + 0x64]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ecx
add esp, 0xf4
ret
call fcn.6585e6e0
jmp fcn.65899970