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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6599cc6d
sub esp, 0x44
mov eax, dword [esp + 0x48]
test byte [eax], al
lea ecx, [eax + 0xd8]
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
call fcn.65982600
mov eax, dword [esp + 8]
cmp eax, 0x80000000
sete al
seta cl
and eax, 1
or ecx, eax
test cl, cl
jne 0x6599cab2
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
movzx ecx, byte [0x65a806c8]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x34], eax
test cl, cl
je 0x6599ca88
call fcn.659c2240
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x11c]
mov dword [esp + 0x24], edx
mov ebx, dword [ecx + 0x118]
mov dword [esp + 0x38], ebx
mov ebp, dword [ecx + 0x120]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x4c]
xor edi, edi
jmp 0x6599cace
add esp, 0x44
ret
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
mov esi, ecx
mov edi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
test esi, esi
jbe 0x6599cc17
mov dword [esp + 0x20], esi
xchg edi, eax
mov byte [esp + 0x1f], al
xchg edi, eax
lea eax, [ecx + 0xe0]
mov dword [esp + 0x3c], eax
mov dword [esp], eax
call fcn.65982470
mov eax, dword [esp + 4]
test eax, eax
jbe 0x6599cb3f
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jb 0x6599cb04
mov ecx, eax
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
sub eax, ecx
mov dword [esp + 8], eax
call fcn.65982450
movzx eax, byte [esp + 0xc]
test al, al
je 0x6599cb2f
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
sub esi, eax
jmp 0x6599cb33
mov esi, dword [esp + 0x20]
mov ecx, esi
movzx eax, byte [esp + 0x1f]
jmp 0x6599cab6
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x200
call fcn.65982540
mov eax, dword [esp + 0xc]
add eax, 0xfffffe00
mov ecx, eax
shr eax, 9
mov edx, dword [esp + 0x24]
cmp edx, eax
jbe 0x6599cbee
movzx eax, byte [esp + 0x1f]
test al, al
jne 0x6599cb94
mov dword [esp + 0x2c], ecx
nop
nop
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.65987980
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x200
call fcn.6599cc80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jb 0x6599cbd0
sub ecx, eax
jmp 0x6599cbe4
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
sub eax, ecx
mov dword [esp + 4], eax
call fcn.659824a0
xor ecx, ecx
mov eax, 1
jmp 0x6599cab6
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 8], 0x80000000
mov dword [esp + 4], 0
call fcn.65982620
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
movzx edi, byte [esp + 0x1f]
xchg edi, eax
test al, al
xchg edi, eax
je 0x6599cc2a
nop
mov dword [esp], ecx
call fcn.65987b80
mov eax, dword [esp + 0x34]
movzx ecx, byte [0x65a806c8]
test cl, cl
je 0x6599cc3e
call fcn.659c2340
mov eax, dword [esp + 0x34]
nop
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x78]
lea ebx, [edx - 1]
mov dword [eax + 0x78], ebx
cmp edx, 1
jne 0x6599cc69
movzx eax, byte [ecx + 0x65]
test al, al
je 0x6599cc69
mov dword [ecx + 8], 0xfffffade
add esp, 0x44
ret
call fcn.659c97c0
jmp fcn.6599ca10