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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 0xc]
jbe 0x65849b60
sub esp, 0x34
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov ebx, dword [esp + 0x38]
mov ebp, ebx
mov esi, dword [esp + 0x3c]
sub esi, ebp
lea edi, [esi - 1]
test esi, edi
jne 0x65849b49
mov edi, dword [0x659af048]
test edi, edi
jne 0x658499a2
cmp esi, 0x8000
jae 0x6584992c
mov eax, esi
xor ecx, ecx
jmp 0x65849a67
mov eax, dword [0x6598ee04]
test byte [eax], al
nop
nop
mov dword [esp + 0x28], ebx
mov ecx, ebp
shr ebp, 0x16
mov eax, dword [eax + ebp*4]
shr ecx, 0xd
and ecx, 0x1ff
mov ecx, dword [eax + ecx*4 + 0x40000]
mov dword [esp + 0x14], ecx
test byte [ecx], al
test byte [eax], al
lea eax, [ecx + 0x3b]
mov dword [esp], eax
call fcn.65802f50
cmp byte [esp + 4], 2
jne 0x65849a0f
mov eax, dword [0x659aed60]
test eax, eax
je 0x65849985
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
xor edx, edx
jmp 0x658499b9
lea eax, [0x6598ed20]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call fcn.65827920
jmp 0x658499b2
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.65814220
add esp, 0x34
ret
add esp, 0x34
ret
shr ecx, 1
inc edx
cmp ecx, 1
ja 0x658499b6
mov dword [esp + 0x18], edx
nop
lea eax, [0x659af380]
mov dword [esp], eax
call fcn.6580a160
mov eax, dword [esp + 0x18]
cmp eax, 0x13
jae 0x65849a05
lea ecx, [0x659af384]
lea eax, [ecx + eax*8]
mov dword [esp], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
call fcn.65827fc0
nop
nop
lea eax, [0x659af380]
mov dword [esp], eax
call fcn.6580a360
jmp 0x658499b2
mov ecx, 0x13
call fcn.6585e7b0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
call fcn.65837c40
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.658383a0
call fcn.65837e20
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.658384a0
call fcn.65837e60
call fcn.65837cb0
lea eax, [0x658e8367]
mov dword [esp], eax
mov dword [esp + 4], 0xe
call fcn.65836520
inc ecx
shr esi, 1
cmp esi, 0x1000
ja 0x65849a64
mov edx, dword [edx + 0x18]
mov ebx, dword [edx + 0x58]
test ebx, ebx
je 0x65849a80
mov edx, dword [edx + 0x78]
test edx, edx
je 0x65849ad0
movzx eax, cl
cmp eax, 3
jae 0x65849b3f
mov byte [esp + 0xf], cl
shl eax, 6
lea ecx, [0x659af420]
add eax, ecx
mov dword [esp + 0x2c], eax
nop
mov dword [esp], eax
call fcn.6580a160
mov eax, dword [esp + 0x38]
mov dword [esp], eax
movzx eax, byte [esp + 0xf]
mov byte [esp + 4], al
call fcn.65849240
nop
nop
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.6580a360
jmp 0x658499b2
mov edx, dword [ebx + 0x30]
test byte [edx], al
movzx ebx, cl
cmp ebx, 3
jae 0x65849b33
lea esi, [edx + ebx*8 + 0x238]
cmp dword [esi], 0x8000
jb 0x65849b1c
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], esi
mov dword [esp], edx
mov byte [esp + 4], cl
call fcn.65849460
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov ecx, ebp
lea edx, [edx + ebx*8 + 0x234]
mov ebx, dword [edx]
mov dword [ebp], ebx
mov dword [edx], ecx
add dword [esi], eax
jmp 0x658499b2
mov eax, ebx
mov ecx, 3
call fcn.6585e7b0
mov ecx, 3
call fcn.6585e7b0
lea eax, [0x658eb0a3]
mov dword [esp], eax
mov dword [esp + 4], 0x16
call fcn.65836520
nop
call fcn.6585c0f0
jmp fcn.658498d0