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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6598956c
sub esp, 0x50
cmp dword [0x65a9c090], 2
je 0x65989555
mov edx, dword [esp + 0x54]
test edx, edx
je 0x659894d5
movzx ebx, byte [0x65a9c31c]
test bl, bl
je 0x65988ed8
mov ebx, dword [0x65a9c328]
test ebx, ebx
je 0x65988e7e
mov eax, dword [esp + 0x58]
test eax, eax
je 0x65988e57
test edx, 7
jne 0x65988e32
mov eax, 8
jmp 0x65988e5c
test edx, 3
jne 0x65988e41
mov eax, 4
jmp 0x65988e5c
test edx, 1
jne 0x65988e50
mov eax, 2
jmp 0x65988e5c
mov eax, 1
jmp 0x65988e5c
mov eax, 0x10
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [0x65a9dbe0]
mov dword [esp + 8], eax
call fcn.65989980
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
add esp, 0x50
ret
movzx ebx, byte [0x65a9c240]
test bl, bl
je 0x65988ed8
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x54]
cmp dword [0x65a9c248], ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov ebx, dword [ebx + 0x50]
cmp dword [0x65a9c244], ebx
sete bl
and ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x65988ed8
mov ebx, dword [0x65a9c24c]
add ebx, 1
mov ebp, dword [0x65a9c250]
mov dword [0x65a9c24c], ebx
adc ebp, 0
mov dword [0x65a9c250], ebp
mov ebx, dword [0x65a9c088]
test ebx, ebx
je 0x65988f32
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x18]
mov ebp, dword [ebp + 0x4c]
test ebp, ebp
jne 0x65988efb
mov ebp, ebx
mov ebx, dword [ebp + 0xe4]
sub ebx, edx
mov esi, dword [ebp + 0xe8]
mov dword [ebp + 0xe4], ebx
sbb esi, 0
mov dword [ebp + 0xe8], esi
test esi, esi
jge 0x65988f34
mov dword [esp + 0x48], ebp
mov dword [esp], ebp
call fcn.65994ba0
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x48]
jmp 0x65988f34
xor ebp, ebp
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov esi, dword [ebx + 0x18]
nop
inc dword [esi + 0x78]
mov esi, dword [ebx + 0x18]
test byte [ebx], al
mov ebx, dword [esi + 0x68]
test ebx, ebx
jne 0x6598953f
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
cmp dword [esi + 0x2c], ebx
je 0x65989529
mov dword [esi + 0x68], 1
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x54]
test ebx, ebx
je 0x65988f91
mov ebx, dword [ebx + 0x30]
jmp 0x65988f97
mov ebx, dword [0x65a9c0a4]
test ebx, ebx
je 0x65989513
mov edi, dword [esp + 0x58]
test edi, edi
je 0x65988fb7
mov eax, ebp
mov ebp, dword [edi + 4]
test ebp, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
jmp 0x65988fbe
mov eax, ebp
mov ebp, 1
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], ebx
xchg ebp, eax
mov byte [esp + 0x19], al
xchg ebp, eax
mov dword [esp + 0x4c], eax
cmp edx, 0x8000
ja 0x6598921d
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x659890ff
cmp edx, 0x10
jae 0x659890ff
mov ecx, dword [ebx + 0xc]
test edx, 7
jne 0x65989002
add ecx, 7
and ecx, 0xfffffff8
jmp 0x6598902c
cmp edx, 0xc
jne 0x6598900f
add ecx, 7
and ecx, 0xfffffff8
jmp 0x6598902c
test edx, 3
jne 0x6598901f
add ecx, 3
and ecx, 0xfffffffc
jmp 0x6598902c
test edx, 1
jne 0x6598902c
nop
inc ecx
and ecx, 0xfffffffe
lea eax, [ecx + edx]
cmp eax, 0x10
ja 0x6598907d
mov edi, dword [ebx + 8]
test edi, edi
je 0x6598907d
add ecx, edi
mov dword [ebx + 0xc], eax
inc dword [ebx + 0x10]
mov dword [esi + 0x68], 0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov edx, dword [esi + 0x78]
lea ebx, [edx - 1]
mov dword [esi + 0x78], ebx
cmp edx, 1
jne 0x65989075
movzx edx, byte [eax + 0x65]
test dl, dl
je 0x65989075
mov dword [eax + 8], 0xfffffade
mov dword [esp + 0x60], ecx
add esp, 0x50
ret
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp], eax
call fcn.65988b70
mov eax, dword [esp + 4]
test eax, eax
je 0x6598909c
mov ecx, dword [esp + 0x1c]
xor edx, edx
jmp 0x659890ba
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov byte [esp + 4], 5
call fcn.65988c90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x2c]
cmp dword [ebp + 0xc], ebx
ja 0x659890e9
mov esi, dword [ebp + 8]
test esi, esi
jne 0x659890f3
mov esi, eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
jmp 0x659890f5
mov esi, eax
mov eax, 0x10
jmp 0x65989216
cmp edx, 0x3f8
ja 0x65989127
mov ecx, esi
lea esi, [edx + 7]
shr esi, 3
cmp esi, 0x81
jae 0x65989507
lea edx, [0x659ecc80]
movzx edx, byte [edx + esi]
jmp 0x6598914e
mov ecx, esi
lea esi, [edx - 0x381]
shr esi, 7
cmp esi, 0xf9
jae 0x659894fb
lea edi, str._______________________....______0001123333333333444444444455666677777888888888889999999999::::::___________________________________________________________________________AAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
movzx esi, byte [edi + esi]
mov edi, dword [esp + 0x58]
mov edx, esi
movzx esi, dl
cmp esi, 0x44
jae 0x659894ef
lea edi, [0x659ecdc0]
movzx esi, word [edi + esi*2]
nop
shl edx, 1
xchg ebp, eax
movzx edi, al
xchg ebp, eax
or edx, edi
movzx edi, dl
cmp edi, 0x88
jae 0x659894e3
mov byte [esp + 0x17], dl
mov dword [esp + 0x34], esi
mov eax, dword [ebx + edi*4 + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp], eax
call fcn.65988b70
mov eax, dword [esp + 4]
test eax, eax
je 0x659891a5
mov ecx, dword [esp + 0x1c]
xor edx, edx
jmp 0x659891c7
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
movzx ecx, byte [esp + 0x17]
mov byte [esp + 4], cl
call fcn.65988c90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
movzx edx, byte [esp + 0x10]
movzx ebx, byte [esp + 0x5c]
test bl, bl
je 0x65989208
movzx ebp, byte [ecx + 0x3c]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x65989208
mov dword [esp + 0x44], eax
mov byte [esp + 0x18], dl
mov dword [esp + 0x30], ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call fcn.659cb2f0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
movzx edx, byte [esp + 0x18]
movzx ebx, byte [esp + 0x5c]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x34]
mov edi, 1
jmp 0x65989289
movzx ecx, byte [esp + 0x5c]
test cl, cl
je 0x65989236
xor ebp, 1
xchg ebp, eax
mov byte [esp + 0x1b], al
xchg ebp, eax
movzx ebp, byte [esp + 0x19]
jmp 0x65989240
mov dword [esp + 0x38], eax
xor eax, eax
mov byte [esp + 0x1b], al
mov dword [esp], ebx
mov dword [esp + 4], edx
movzx eax, byte [esp + 0x1b]
mov byte [esp + 8], al
xchg ebp, eax
mov byte [esp + 9], al
xchg ebp, eax
call fcn.6598f410
mov ecx, dword [esp + 0xc]
movzx eax, byte [esp + 0x10]
mov dword [ecx + 0x18], 1
mov word [ecx + 0x38], 1
mov esi, dword [ecx + 0xc]
nop
mov edx, dword [ecx + 0x40]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x2c]
mov edi, eax
mov eax, edx
mov edx, 1
mov dword [esp + 0x44], esi
mov dword [esp + 0x20], eax
mov byte [esp + 0x18], dl
xchg edi, eax
mov byte [esp + 0x1a], al
xchg edi, eax
mov dword [esp + 0x1c], ecx
movzx edx, byte [esp + 0x19]
test dl, dl
je 0x659892ac
xor edx, edx
jmp 0x65989306
mov edx, dword [esp + 0x58]
cmp dword [0x65a76178], edx
jne 0x659892bd
mov ebx, 0x28
mov dword [esp + 0x28], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.6598da50
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
cmp edx, ecx
jbe 0x659892f8
mov eax, dword [eax + 4]
test eax, eax
je 0x659892f2
mov ebx, edx
sub edx, ecx
add eax, edx
jmp 0x659892fd
mov ebx, edx
xor eax, eax
jmp 0x659892fd
mov eax, dword [eax + 4]
mov ebx, edx
mov ecx, dword [esp + 0x2c]
add dword [ecx + 4], eax
mov edx, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edx
call fcn.659ca840
mov eax, dword [0x65a9c090]
test eax, eax
je 0x65989341
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], edx
call fcn.65997160
mov eax, dword [0x65a9c028]
test eax, eax
jle 0x65989386
cmp eax, 1
je 0x65989364
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jae 0x65989368
sub ecx, edx
mov dword [eax], ecx
jmp 0x6598938a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.65989700
mov edx, dword [esp + 0x20]
jmp 0x6598938a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
mov dword [eax + 0x68], 0
nop
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ebx, dword [eax + 0x78]
lea ebp, [ebx - 1]
mov dword [eax + 0x78], ebp
cmp ebx, 1
jne 0x659893c0
movzx eax, byte [ecx + 0x65]
test al, al
je 0x659893c0
mov dword [ecx + 8], 0xfffffade
movzx eax, byte [esp + 0x1a]
test al, al
jne 0x659893e6
movzx eax, byte [esp + 0x5c]
test al, al
je 0x659893e6
mov dword [esp], edx
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
call fcn.65989580
mov edx, dword [esp + 0x20]
movzx eax, byte [0x65a9c31c]
test al, al
je 0x65989444
movzx eax, byte [0x65a9c240]
test al, al
je 0x65989444
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x50]
cmp dword [0x65a9c244], ecx
sete cl
mov eax, dword [eax + 0x54]
cmp dword [0x65a9c248], eax
sete al
and eax, ecx
test al, al
je 0x65989444
mov eax, dword [0x65a9c254]
add eax, edx
mov ecx, dword [0x65a9c258]
mov dword [0x65a9c254], eax
adc ecx, 0
mov dword [0x65a9c258], ecx
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x6598946f
mov ecx, dword [eax + 0xe4]
mov ebx, dword [esp + 0x28]
sub edx, ebx
sub ecx, edx
mov edx, dword [eax + 0xe8]
mov dword [eax + 0xe4], ecx
sbb edx, 0
mov dword [eax + 0xe8], edx
movzx eax, byte [esp + 0x18]
test al, al
je 0x659894c9
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
call fcn.65991680
movzx eax, byte [esp + 0x10]
test al, al
je 0x659894c9
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
call fcn.659917b0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
add esp, 0x50
ret
lea eax, [0x65a9c104]
mov dword [esp + 0x60], eax
add esp, 0x50
ret
mov eax, edi
mov ecx, 0x88
call fcn.659cac90
mov eax, esi
mov ecx, 0x44
call fcn.659cac90
mov eax, esi
mov ecx, 0xf9
call fcn.659caca0
mov eax, esi
mov ecx, 0x81
call fcn.659caca0
lea eax, [0x65a18fb6]
mov dword [esp], eax
mov dword [esp + 4], 0x34
call fcn.659ab0e0
lea eax, [0x65a14e88]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.659ab0e0
lea eax, [0x65a13df9]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.659ab0e0
lea eax, [0x65a18e20]
mov dword [esp], eax
mov dword [esp + 4], 0x32
call fcn.659ab0e0
nop
call fcn.659c97c0
jmp fcn.65988dd0