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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x659b1551
sub esp, 0x8c
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov dword [esp + 0x80], eax
jmp 0x659b09ad
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x54]
mov edx, dword [0x65a76b00]
test edx, edx
je 0x659b09cb
call fcn.659b0730
mov eax, dword [esp + 0x80]
jmp 0x659b09ad
mov dword [esp + 0x88], ecx
test byte [ecx], al
mov edx, dword [ecx + 0x13a8]
test edx, edx
je 0x659b09ea
call fcn.659af140
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.659b2720
movzx eax, byte [0x65a9c007]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x44], ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x3c], esi
test al, al
je 0x659b0a72
movzx eax, byte [0x65a9c008]
test al, al
je 0x659b0a72
call fcn.65990770
mov eax, dword [esp]
test eax, eax
je 0x659b0a5e
mov dword [esp + 4], 0
mov byte [esp + 8], 1
call fcn.659ade10
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
mov eax, dword [0x65a00d7c]
mov eax, dword [eax]
test eax, eax
je 0x659b0a8e
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.659ca870
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call fcn.659b7410
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 8]
test eax, eax
jne 0x659b14e3
mov eax, dword [0x65a76ab8]
test eax, eax
je 0x659b0b03
nop
nop
lea eax, [0x65a76a78]
mov dword [esp], eax
call fcn.65987980
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.659b6af0
mov eax, dword [esp + 8]
mov dword [esp + 0x74], eax
nop
nop
lea ecx, [0x65a76a78]
mov dword [esp], ecx
call fcn.65987b80
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x659b14cd
lea eax, [0x65a9c0b4]
mov dword [esp], eax
call fcn.65982400
mov eax, dword [esp + 4]
test eax, eax
jne 0x659b0b1d
xor ecx, ecx
jmp 0x659b0b59
lea eax, [0x65a9c0b8]
mov dword [esp], eax
call fcn.65982400
mov eax, dword [esp + 4]
test eax, eax
ja 0x659b0b37
xor ecx, ecx
jmp 0x659b0b59
lea eax, [0x65a76a68]
mov dword [esp], eax
call fcn.65982600
mov eax, dword [esp + 4]
test eax, eax
setne al
mov ecx, dword [esp + 8]
test ecx, ecx
setne cl
or ecx, eax
test cl, cl
je 0x659b0b81
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.659a5a00
mov eax, dword [esp + 8]
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x659b144f
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x18]
mov edx, dword [0x65a9c094]
movzx ecx, byte [ecx + 0x84]
test cl, cl
je 0x659b0ba3
mov ecx, 1
jmp 0x659b0be7
mov dword [esp + 0x64], edx
lea eax, [0x65a76aac]
mov dword [esp], eax
call fcn.65982400
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
lea ecx, [0x65a76aa8]
mov dword [esp], ecx
call fcn.65982400
mov eax, dword [esp + 0x60]
shl eax, 1
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 4]
cmp ecx, eax
seta al
mov ecx, eax
mov eax, dword [esp + 0x80]
test cl, cl
jne 0x659b0c00
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
jmp 0x659b0cd8
mov ecx, dword [eax + 0x18]
movzx edx, byte [ecx + 0x84]
test dl, dl
jne 0x659b0c2b
mov byte [ecx + 0x84], 1
lea eax, [0x65a76aac]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.65982520
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.659b1660
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0x20]
movzx edx, byte [esp + 0xc]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x40], esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x659b143a
test cl, cl
je 0x659b0c7d
mov eax, dword [esp + 0x80]
jmp 0x659b09ad
mov dword [esp + 0x44], edi
test ebp, ebp
setne al
test ebx, ebx
setne cl
or ecx, eax
test cl, cl
je 0x659b0cc6
mov eax, dword [esp + 0x34]
test eax, eax
sete cl
mov edx, dword [esp + 0x38]
test edx, edx
xchg edi, ebx
sete bl
xchg edi, ebx
and edi, ecx
xchg edi, eax
test al, al
xchg edi, eax
jne 0x659b0cd0
cmp ebp, eax
setb cl
cmp ebx, edx
sete dl
setl bl
and edx, ecx
or ebx, edx
test bl, bl
jne 0x659b0cd0
jmp 0x659b0cca
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov ebp, eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov edx, dword [0x65a9c088]
test edx, edx
jne 0x659b0cf6
xor edx, edx
jmp 0x659b0d1c
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call fcn.659934b0
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov edx, eax
mov eax, dword [esp + 0x44]
test dl, dl
je 0x659b0d3a
lea eax, [0x65a9c130]
mov dword [esp], eax
call fcn.65987870
mov eax, dword [esp + 4]
test eax, eax
jne 0x659b13c8
mov eax, dword [0x65a76620]
mov dword [esp + 0x78], eax
mov ecx, dword [0x65a76624]
mov dword [esp + 0x58], ecx
mov edx, dword [0x65a76628]
mov dword [esp + 0x5c], edx
mov ebx, dword [0x65a76650]
mov dword [esp + 0x6c], ebx
mov ebp, dword [0x65a76654]
mov dword [esp + 0x50], ebp
mov esi, dword [0x65a76658]
mov dword [esp + 0x54], esi
mov edi, dword [0x65a76670]
mov dword [esp + 0x68], edi
mov edi, dword [0x65a76674]
mov dword [esp + 0x2c], edi
mov edi, dword [0x65a76678]
mov dword [esp + 0x30], edi
nop
nop
lea edi, [0x65a76a78]
mov dword [esp], edi
call fcn.65987980
mov eax, dword [0x65a76b00]
test eax, eax
jne 0x659b0dbf
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x13a8]
test ecx, ecx
je 0x659b0ddb
nop
nop
lea eax, [0x65a76a78]
mov dword [esp], eax
call fcn.65987b80
mov eax, dword [esp + 0x80]
jmp 0x659b09ad
mov ecx, dword [0x65a76ab8]
test ecx, ecx
jne 0x659b1386
call fcn.659b5be0
mov eax, dword [esp + 0x88]
cmp dword [esp], eax
jne 0x659b153a
mov dword [esp], eax
call fcn.659b6d90
nop
nop
lea eax, [0x65a76a78]
mov dword [esp], eax
call fcn.65987b80
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x18]
movzx edx, byte [ecx + 0x84]
mov byte [esp + 0x2b], dl
test dl, dl
jne 0x659b0e3c
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
jmp 0x659b0f3c
mov byte [ecx + 0x84], 0
lea eax, [0x65a76aac]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call fcn.65982520
mov eax, dword [esp + 8]
test eax, eax
jl 0x659b1524
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], ebx
call fcn.659b1b70
mov eax, dword [esp + 0x18]
test eax, eax
je 0x659b0edc
mov dword [esp], eax
call fcn.659b5b10
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x84], 1
lea ecx, [0x65a76aac]
mov dword [esp], ecx
mov dword [esp + 4], 1
call fcn.65982520
mov eax, dword [esp + 0x80]
jmp 0x659b09ad
call fcn.659b1d70
mov eax, dword [esp]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x659b12e3
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
call fcn.659b1c50
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], esi
lea eax, [0x65a9c0b4]
mov dword [esp], eax
call fcn.65982400
mov eax, dword [esp + 4]
test eax, eax
jne 0x659b0f66
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
jmp 0x659b0fd2
lea eax, [0x65a9c0b8]
mov dword [esp], eax
call fcn.65982400
mov eax, dword [esp + 4]
test eax, eax
ja 0x659b0f94
mov eax, dword [esp + 0x34]
test eax, eax
setne cl
mov edx, dword [esp + 0x3c]
test edx, edx
setne bl
or ebx, ecx
test bl, bl
je 0x659b0fd0
lea eax, [0x65a76a68]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.659825a0
mov eax, dword [esp + 0x10]
test eax, eax
setne al
mov ecx, dword [esp + 0xc]
test ecx, ecx
setne cl
or ecx, eax
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
jmp 0x659b0fd2
xor ecx, ecx
test cl, cl
jne 0x659b1068
test eax, eax
setne cl
test edx, edx
setne bl
or ebx, ecx
test bl, bl
jne 0x659b0fee
xor ecx, ecx
jmp 0x659b100f
lea eax, [0x65a9c0b4]
mov dword [esp], eax
call fcn.65982400
mov eax, dword [esp + 4]
test eax, eax
setne al
mov edx, dword [esp + 0x3c]
mov ecx, eax
mov eax, dword [esp + 0x34]
test cl, cl
je 0x659b12d2
lea eax, [0x65a76a70]
mov dword [esp], eax
call fcn.65982600
mov eax, dword [esp + 8]
test eax, eax
sete cl
mov edx, dword [esp + 4]
test edx, edx
sete bl
and ebx, ecx
test bl, bl
jne 0x659b105e
mov ecx, dword [esp + 0x34]
cmp ecx, edx
setb cl
mov edx, dword [esp + 0x3c]
cmp edx, eax
setl al
sete dl
and edx, ecx
or edx, eax
test dl, dl
je 0x659b12d2
call fcn.659a5950
jmp 0x659b12d2
lea ecx, [0x65a76a70]
mov dword [esp], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.65982620
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x54]
test edx, edx
jne 0x659b150e
movzx ecx, byte [ecx + 0x84]
test cl, cl
jne 0x659b14f8
mov ecx, dword [esp + 0x3c]
test ecx, ecx
setne dl
mov ebx, dword [esp + 0x34]
test ebx, ebx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or edx, ebp
test dl, dl
je 0x659b110e
mov edx, dword [esp + 0x40]
test edx, edx
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov esi, dword [esp + 0x44]
test esi, esi
xchg edi, ebx
sete bl
xchg edi, ebx
and edi, ebp
xchg edi, eax
test al, al
xchg edi, eax
je 0x659b1100
nop
call fcn.659cbac0
mov ecx, dword [esp]
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x34]
mov esi, eax
mov edx, ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x3c]
sub ebx, edx
sbb ecx, esi
test ecx, ecx
jge 0x659b1118
xor ecx, ecx
xor ebx, ebx
jmp 0x659b1118
mov ecx, 0xffffffff
mov ebx, 0xffffffff
mov edx, dword [0x65a9c128]
test edx, edx
setne dl
mov ebp, dword [0x65a9c12c]
test ebp, ebp
xchg ebp, ebx
setne bl
xchg ebp, ebx
or ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x659b113e
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.659a5a00
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
lea eax, [0x65a76a70]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.65982620
call fcn.659cbac0
mov eax, dword [esp]
mov ecx, dword [esp + 4]
lea edx, [0x65a76a68]
mov dword [esp], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.65982620
mov eax, dword [0x65a9c128]
test eax, eax
setne al
mov ecx, dword [0x65a9c12c]
test ecx, ecx
setne cl
or ecx, eax
test cl, cl
je 0x659b11c7
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x659b11c7
call fcn.659afe50
mov eax, dword [esp + 0x80]
jmp 0x659b09ad
nop
nop
lea eax, [0x65a76a78]
mov dword [esp], eax
call fcn.65987980
call fcn.659b6e80
mov eax, dword [esp]
mov dword [esp + 0x7c], eax
nop
nop
lea ecx, [0x65a76a78]
mov dword [esp], ecx
call fcn.65987b80
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x659b12c6
mov dword [esp], eax
call fcn.659b5b10
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x659b1248
movzx eax, byte [esp + 0x2b]
test al, al
je 0x659b09a6
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x84], 1
lea ecx, [0x65a76aac]
mov dword [esp], ecx
mov dword [esp + 4], 1
call fcn.65982520
jmp 0x659b09a6
nop
nop
mov dword [esp + 0x88], eax
test eax, eax
je 0x659b125c
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x48], ecx
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.659b2020
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 1
call fcn.659ae120
movzx eax, byte [0x65a806c8]
test al, al
je 0x659b12a9
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.659c27f0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], 0
add esp, 0x8c
ret
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.659b2020
call fcn.659afe50
mov eax, dword [esp + 0x80]
jmp 0x659b09ad
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], ecx
call fcn.659b5b10
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x84], 1
lea eax, [0x65a76aac]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.65982520
mov eax, dword [esp + 0x7c]
mov dword [eax + 0xb78], 3
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 1
call fcn.659ae120
movzx eax, byte [0x65a806c8]
test al, al
je 0x659b1369
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.659c27f0
mov eax, dword [esp + 0x84]
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], 0
add esp, 0x8c
ret
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.659b6af0
mov eax, dword [esp + 8]
mov dword [esp + 0x70], eax
nop
nop
lea ecx, [0x65a76a78]
mov dword [esp], ecx
call fcn.65987b80
mov eax, dword [esp + 0x70]
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], 0
add esp, 0x8c
ret
mov ecx, dword [esp + 0x88]
mov dword [ecx + 0xb78], 3
mov eax, dword [eax + 0xc]
mov dword [esp + 0x88], eax
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 1
call fcn.659ae120
movzx eax, byte [0x65a806c8]
test al, al
je 0x659b141d
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.659c27f0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], 0
add esp, 0x8c
ret
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], dl
add esp, 0x8c
ret
nop
nop
mov dword [esp + 0x88], eax
test eax, eax
je 0x659b1463
mov ecx, dword [eax + 0x58]
mov dword [esp + 0x4c], ecx
lea eax, [esp + 0x4c]
mov dword [esp], eax
call fcn.659b2020
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 4
mov dword [esp + 8], 1
call fcn.659ae120
movzx eax, byte [0x65a806c8]
test al, al
je 0x659b14b0
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.659c27f0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], 0
add esp, 0x8c
ret
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], 0
add esp, 0x8c
ret
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], cl
add esp, 0x8c
ret
lea eax, [0x65a17bbe]
mov dword [esp], eax
mov dword [esp + 4], 0x23
call fcn.659ab0e0
lea eax, [0x65a16b47]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
call fcn.659ab0e0
lea eax, [0x65a17769]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.659ab0e0
lea eax, [0x65a151c5]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.659ab0e0
nop
call fcn.659c97c0
jmp fcn.659b0970