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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6599b4b2
sub esp, 0x70
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x78]
test edx, edx
jne 0x6599ad0f
mov edx, dword [ecx + 0x68]
test edx, edx
jne 0x6599ad0f
cmp dword [ecx], eax
jne 0x6599b49b
mov eax, dword [esp + 0x74]
mov ecx, dword [eax]
movzx edx, byte [esp + 0x78]
test dl, dl
jne 0x6599ad24
mov dword [eax], 0
mov dword [esp + 0x24], ecx
test byte [ecx], al
mov eax, dword [0x65a7c12c]
mov dword [esp + 0x20], eax
lea edx, [ecx + 0x3b]
mov dword [esp + 0x4c], edx
mov dword [esp], edx
call fcn.659823b0
cmp byte [esp + 4], 1
jne 0x6599b485
mov eax, dword [esp + 0x20]
lea ecx, [eax - 1]
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x30], ecx
jne 0x6599b485
mov dword [esp + 0x44], ecx
movzx ebx, byte [0x65a806c8]
test bl, bl
je 0x6599ad83
mov eax, dword [edx + 0x10]
shl eax, 0xd
mov dword [esp], eax
call fcn.659c22b0
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x10]
lea ecx, [0x65a7c150]
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call fcn.65982540
mov eax, dword [esp + 0x24]
movzx ecx, byte [eax + 0x3a]
mov byte [esp + 0x17], cl
mov edx, dword [eax + 0x40]
mov dword [esp + 0x30], edx
mov ebx, dword [eax + 0x4c]
mov dword [esp + 0x1c], ebx
lea ebp, [eax + 0x4c]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebx
jmp 0x6599add6
mov edx, dword [esp + 0x30]
mov eax, edi
movzx ecx, byte [esp + 0x17]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x6599aeaa
movzx esi, word [ebp + 4]
test edx, edx
je 0x6599b480
mov edi, eax
mov eax, esi
mov ebx, edx
xor edx, edx
div ebx
mov dword [esp + 0x2c], eax
mov edx, eax
imul eax, ebx
mov esi, dword [edi + 0xc]
add esi, eax
mov dword [esp + 0x28], esi
nop
nop
shr edx, 3
mov esi, dword [esp + 0x2c]
and esi, 7
mov ecx, esi
mov ebx, 1
shl ebx, cl
nop
add edx, dword [edi + 0x2c]
movzx esi, byte [edx]
xchg esi, eax
test al, bl
xchg esi, eax
je 0x6599ae73
cmp byte [ebp + 6], 3
je 0x6599ae40
nop
mov dword [esp + 0x50], ebp
mov edx, dword [ebp]
mov dword [esp + 0x54], edx
jmp 0x6599adc7
nop
mov eax, dword [ebp]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov byte [ebp + 9], 1
mov eax, dword [esp + 0x28]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.6599ea40
mov edi, dword [esp + 0x24]
jmp 0x6599adc7
mov ecx, edi
mov edi, dword [esp + 0x30]
add edi, eax
jmp 0x6599b3fb
nop
or esi, ebx
xchg esi, ebx
mov byte [eax], bl
xchg esi, ebx
mov eax, 1
jmp 0x6599ae96
xor eax, eax
jmp 0x6599ae96
xor eax, eax
mov dword [esp + 0x3c], edi
mov byte [esp + 0x18], al
jmp 0x6599b41c
mov edi, ecx
jmp 0x6599adc7
test ebx, ebx
je 0x6599aeca
mov ebx, dword [eax + 0x4c]
test ebx, ebx
jne 0x6599aeca
mov dword [esp], eax
call fcn.6599e3e0
mov eax, dword [esp + 0x24]
movzx ecx, byte [esp + 0x17]
mov edx, dword [esp + 0x30]
mov ebx, dword [0x65a9c320]
test ebx, ebx
jne 0x6599aede
mov ebx, dword [0x65a9c2e4]
test ebx, ebx
je 0x6599af0d
mov ebx, dword [eax + 0x2c]
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], 1
mov dword [esp + 0x60], 0
mov ebx, dword [eax + 0x28]
mov dword [esp + 0x64], ebx
mov byte [esp + 0x68], 1
mov dword [esp + 0x6c], 0
xor ebx, ebx
jmp 0x6599b342
mov ebx, dword [eax + 0x18]
cmp dword [eax + 0x1c], ebx
jbe 0x6599af6f
mov ebp, dword [eax + 0x2c]
mov esi, ebx
shr ebx, 3
movzx ebp, byte [ebx + ebp]
mov edi, dword [eax + 0x28]
movzx edi, byte [ebx + edi]
xchg edi, ebx
not ebx
xchg edi, ebx
and edi, ebp
and esi, 7
mov ebp, ecx
mov ecx, esi
xchg edi, eax
shr al, cl
xchg edi, eax
mov esi, 0xffffffff
xchg esi, eax
xchg edi, ebx
test bl, al
xchg edi, ebx
xchg esi, eax
je 0x6599af67
mov dword [esp + 0x34], ebx
mov dword [esp], eax
call fcn.6599b4c0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
movzx ebp, byte [esp + 0x17]
lea ecx, [ebx + 1]
jmp 0x6599b2f3
mov dword [esp], eax
call fcn.6598d8e0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
movzx edx, word [ecx + 0x38]
mov ebx, edx
sub edx, eax
cmp ax, bx
ja 0x6599b2dc
mov dword [esp + 0x40], eax
mov word [esp + 0x1a], dx
mov word [ecx + 0x38], ax
mov dword [ecx + 0x18], 0
movzx ebx, byte [0x65a806c8]
test bl, bl
je 0x6599afcf
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x54]
movzx ebp, dx
imul ebp, dword [ecx + 0x40]
add dword [ebx + 0xb48], ebp
mov eax, dword [ecx + 0x2c]
mov dword [ecx + 0x28], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp], eax
call fcn.6599ec10
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x2c], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.6598c9c0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.659823b0
cmp byte [esp + 4], 1
jne 0x6599b2c6
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [esp + 0x44]
cmp ecx, edx
jne 0x6599b2c6
mov edx, dword [esp + 0x20]
lea ebx, [edx + 1]
cmp ecx, ebx
je 0x6599b2b0
lea ebx, [edx + 3]
cmp ecx, ebx
je 0x6599b2b0
lea ecx, [eax + 0x30]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.659825e0
movzx eax, byte [esp + 0x17]
mov ecx, eax
shr al, 1
test al, al
je 0x6599b18c
movzx edx, word [esp + 0x1a]
test dx, dx
ja 0x6599b072
movzx edx, byte [esp + 0x78]
test dl, dl
jmp 0x6599b0d8
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x24]
mov byte [eax + 0x3c], 1
lea ecx, [0x65a9f170]
mov dword [esp], ecx
call fcn.659a4e60
mov eax, dword [esp + 4]
test byte [eax], al
movzx ecx, byte [esp + 0x19]
movsx ecx, cl
cmp ecx, 0x44
jae 0x6599b2a4
lea eax, [eax + ecx*4 + 0x154]
mov dword [esp], eax
movzx eax, word [esp + 0x1a]
movzx eax, ax
mov dword [esp + 4], eax
call fcn.659824a0
lea eax, [0x65a9f170]
mov dword [esp], eax
call fcn.659a4f40
movzx eax, byte [esp + 0x78]
test al, al
movzx ecx, byte [esp + 0x17]
jne 0x6599b27d
mov edx, dword [esp + 0x40]
test dx, dx
je 0x6599b16d
movzx edx, dx
mov ebx, dword [esp + 0x24]
cmp dword [ebx + 0x1c], edx
jne 0x6599b132
movzx eax, cl
cmp eax, 0x88
jae 0x6599b29a
shl eax, 7
lea ecx, [0x65a7c1dc]
lea eax, [eax + ecx + 0x34]
mov ecx, dword [esp + 0x20]
shr ecx, 1
and ecx, 1
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.659a4790
jmp 0x6599b27d
movzx eax, cl
cmp eax, 0x88
jae 0x6599b290
shl eax, 7
lea ecx, [0x65a7c1dc]
lea eax, [ecx + eax + 4]
mov ecx, dword [esp + 0x20]
shr ecx, 1
and ecx, 1
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.659a4790
jmp 0x6599b27d
lea eax, [0x65a7c0a0]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.6599dd60
mov byte [esp + 0x7c], 1
add esp, 0x70
ret
movzx edx, byte [esp + 0x78]
test dl, dl
jne 0x6599b27d
movzx edx, word [esp + 0x1a]
test dx, dx
je 0x6599b247
mov eax, dword [0x65a9c2e8]
test eax, eax
jle 0x6599b1d3
mov eax, dword [esp + 0x24]
mov dword [eax + 0x44], 0
nop
mov eax, dword [eax + 0xc]
nop
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.659901b0
jmp 0x6599b1e9
lea eax, [0x65a7c0a0]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.6599dd60
lea eax, [0x65a9f170]
mov dword [esp], eax
call fcn.659a4e60
mov eax, dword [esp + 4]
mov dword [esp + 0x48], eax
test byte [eax], al
lea ecx, [eax + 0x150]
mov dword [esp], ecx
mov dword [esp + 4], 1
call fcn.659824a0
mov eax, dword [esp + 0x48]
add eax, 0x14c
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.659824a0
lea eax, [0x65a9f170]
mov dword [esp], eax
call fcn.659a4f40
mov byte [esp + 0x7c], 1
add esp, 0x70
ret
movzx eax, cl
cmp eax, 0x88
jae 0x6599b286
shl eax, 7
lea ecx, [0x65a7c1dc]
lea eax, [eax + ecx + 0x34]
mov ecx, dword [esp + 0x20]
shr ecx, 1
and ecx, 1
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.659a4790
mov byte [esp + 0x7c], 0
add esp, 0x70
ret
mov ecx, 0x88
call fcn.659cac90
mov ecx, 0x88
call fcn.659cac90
mov ecx, 0x88
call fcn.659cac90
mov eax, ecx
mov ecx, 0x44
call fcn.659cac90
lea eax, [0x65a14399]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call fcn.659ab0e0
lea eax, [0x65a1819d]
mov dword [esp], eax
mov dword [esp + 4], 0x27
call fcn.659ab0e0
lea eax, [0x65a176c6]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.659ab0e0
inc ecx
mov ebx, dword [eax + 0x1c]
add ebx, 7
shr ebx, 3
cmp ecx, ebx
jae 0x6599af6f
mov ebx, dword [eax + 0x2c]
movzx ebx, byte [ecx + ebx]
mov esi, dword [eax + 0x28]
movzx esi, byte [ecx + esi]
xchg esi, ebx
not ebx
xchg esi, ebx
xchg esi, eax
test bl, al
xchg esi, eax
je 0x6599b2f2
mov dword [esp + 0x38], ecx
mov dword [esp], eax
call fcn.6599b4c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
movzx ebp, byte [esp + 0x17]
jmp 0x6599b2f2
inc dword [esp + 0x6c]
inc ebx
cmp dword [eax + 0x1c], ebx
jbe 0x6599af0d
mov ebp, dword [esp + 0x58]
movzx esi, byte [esp + 0x5c]
movzx ebp, byte [ebp]
xchg esi, eax
xchg ebp, ebx
test bl, al
xchg ebp, ebx
xchg esi, eax
jne 0x6599b399
mov ebp, dword [esp + 0x6c]
cmp dword [eax + 0x18], ebp
ja 0x6599b382
mov ebp, dword [esp + 0x64]
movzx esi, byte [esp + 0x68]
movzx ebp, byte [ebp]
xchg esi, eax
xchg ebp, ebx
test bl, al
xchg ebp, ebx
xchg esi, eax
je 0x6599b399
mov ebp, dword [eax + 0x40]
imul ebp, ebx
add ebp, dword [eax + 0xc]
mov esi, dword [0x65a9c2e4]
test esi, esi
je 0x6599b399
xor esi, esi
jmp 0x6599b3f0
nop
movzx ebp, byte [esp + 0x5c]
xchg ebp, eax
cmp al, 0x80
xchg ebp, eax
jne 0x6599b3b1
inc dword [esp + 0x58]
mov byte [esp + 0x5c], 1
jmp 0x6599b3b9
shl ebp, 1
xchg ebp, eax
mov byte [esp + 0x5c], al
xchg ebp, eax
inc dword [esp + 0x60]
nop
movzx ebp, byte [esp + 0x68]
xchg ebp, eax
cmp al, 0x80
xchg ebp, eax
jne 0x6599b3d8
inc dword [esp + 0x64]
mov byte [esp + 0x68], 1
jmp 0x6599b33d
shl ebp, 1
xchg ebp, eax
mov byte [esp + 0x68], al
xchg ebp, eax
jmp 0x6599b33d
mov dword [ebp + esi], 0xdeadbeef
add esi, 4
cmp esi, edx
jb 0x6599b3e5
jmp 0x6599b399
mov ebp, dword [ebp]
mov edx, eax
test ebp, ebp
je 0x6599ae94
mov eax, edx
movzx edx, word [ebp + 4]
cmp edx, edi
jae 0x6599ae90
cmp byte [ebp + 6], 1
jne 0x6599b3f6
jmp 0x6599ae80
mov edx, dword [esp + 0x54]
test edx, edx
je 0x6599aea3
movzx ebx, word [edx + 4]
cmp ebx, edi
jae 0x6599aea3
mov ebp, dword [ecx + 0xc]
add ebx, ebp
cmp byte [edx + 6], 1
je 0x6599b450
test al, al
je 0x6599b450
nop
mov dword [esp + 0x50], edx
mov edx, dword [edx]
mov dword [esp + 0x54], edx
jmp 0x6599b41c
nop
mov eax, dword [edx]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov dword [esp], edx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.6599ea40
movzx eax, byte [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
jmp 0x6599b41c
call fcn.659a92a0
lea eax, [0x65a16847]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.659ab0e0
lea eax, [0x65a16bef]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
call fcn.659ab0e0
nop
call fcn.659c97c0
jmp fcn.6599acd0