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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x659bc163
sub esp, 0x5c
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0xc]
cmp dword [edx + 8], 0xfffffb2e
je 0x659bc14c
mov ebx, dword [ecx + 0x4c]
cmp edx, ebx
jne 0x659bc131
mov dword [esp + 0x1c], eax
movzx edx, byte [ebx + 0x6b]
test dl, dl
jne 0x659bc0ce
mov dword [esp + 0x20], ebx
lea esi, [ecx + 4]
lea edi, [esp + 0x40]
call fcn.659cb29a
mov ecx, dword [eax + 0x18]
mov dword [ecx + 8], 0
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x18], 0
mov ecx, dword [eax + 0x18]
mov dword [ecx + 4], 0
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0xc], 0
lea ecx, [ebx + 8]
mov dword [esp], ecx
call fcn.65982470
mov eax, dword [esp + 4]
cmp eax, 0xfffffade
jne 0x659bbedf
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x18]
mov ebx, dword [edx + 0x78]
test ebx, ebx
jne 0x659bbebb
mov ebx, dword [edx + 0x68]
test ebx, ebx
jne 0x659bbebb
mov ebx, dword [edx + 0x74]
test ebx, ebx
jne 0x659bbebb
mov edx, dword [edx + 0x54]
cmp dword [edx + 4], 1
je 0x659bbee3
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add ecx, 0xba0
mov dword [eax + 8], ecx
lea ecx, [eax + 0x1c]
mov dword [esp], ecx
call fcn.659c9640
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x659bbee3
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [edx]
test ebx, ebx
je 0x659bc0b8
mov ebp, dword [edx + 0x1c]
add ebp, 0xfffffffc
cmp ebx, ebp
jbe 0x659bbefb
cmp dword [edx], ebp
ja 0x659bc096
cmp eax, 0xfffffade
jne 0x659bbf5f
mov eax, dword [ecx + 0x18]
cmp dword [eax], edx
je 0x659bc080
mov ecx, dword [eax + 0x54]
test ecx, ecx
jne 0x659bbf27
mov eax, dword [eax + 0x78]
test eax, eax
je 0x659bc06a
movzx eax, byte [edx + 0x67]
test al, al
je 0x659bbf3f
mov byte [edx + 0x67], 0
mov dword [esp], edx
call fcn.659bc170
mov edx, dword [esp + 0x20]
movzx eax, byte [edx + 0x66]
test al, al
je 0x659bbf53
mov dword [esp], edx
call fcn.659b2eb0
mov edx, dword [esp + 0x20]
mov dword [esp], edx
call fcn.659b2e30
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
sub eax, dword [edx]
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 0x20]
mov dword [esp], ecx
call fcn.659bdca0
mov eax, dword [esp + 0x10]
mov ecx, eax
shl eax, 1
mov edx, dword [esp + 8]
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x659bbfb3
mov dword [esp + 0x14], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.659be560
mov eax, dword [esp + 8]
add eax, 0xba0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
sub edx, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x14]
jmp 0x659bc057
mov edx, dword [esp + 0x20]
cmp dword [edx + 8], 0xfffffeed
je 0x659bbfc2
mov ecx, eax
mov eax, dword [0x659ea074]
cmp ecx, eax
ja 0x659bc033
cmp dword [0x659ea070], ecx
jb 0x659bc033
mov dword [esp + 0x14], ecx
mov dword [esp], edx
mov dword [esp + 4], 2
mov dword [esp + 8], 8
call fcn.659ae120
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], ecx
call fcn.659bbae0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 8
mov dword [esp + 8], 2
call fcn.659ae120
mov eax, dword [esp + 0x20]
add eax, 0x1c
mov dword [esp], eax
call fcn.659c9640
add esp, 0x5c
ret
mov ecx, dword [0x659ea070]
cmp ecx, eax
jbe 0x659bc03d
lea eax, [0x65a13be8]
mov dword [esp], eax
mov dword [esp + 4], 0xe
call fcn.659ab0e0
shl ebp, 1
mov ebx, ebp
mov ebp, ebx
sub ebx, edx
cmp ebx, eax
jb 0x659bc053
mov ecx, dword [esp + 0x10]
mov eax, ebp
jmp 0x659bbfb3
lea eax, [0x65a17a89]
mov dword [esp], eax
mov dword [esp + 4], 0x22
call fcn.659ab0e0
lea eax, [0x65a14af8]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.659ab0e0
nop
lea eax, [edx + 0x48]
mov dword [esp], eax
call fcn.65982400
lea eax, [0x65a16f13]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.659ab0e0
lea eax, [0x65a16213]
mov dword [esp], eax
mov dword [esp + 4], 0x19
call fcn.659ab0e0
lea esi, [ecx + 4]
lea edi, [esp + 0x24]
call fcn.659cb29a
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call fcn.659bdca0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x659bc123
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
mov byte [eax + 0x99], 2
lea eax, [0x65a175a6]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.659ab0e0
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.659be140
jmp 0x659bc0ff
mov eax, dword [eax + 0x18]
test byte [eax], al
lea eax, [0x65a17df5]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call fcn.659ab0e0
lea eax, [0x65a15be3]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.659ab0e0
nop
call fcn.659c97c0
jmp fcn.659bbdf0