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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x100]
cmp eax, dword [ecx + 8]
jbe 0x6585a356
sub esp, 0x180
mov ecx, dword [0x658b5a10]
test ecx, ecx
je 0x65859f55
mov ecx, dword [0x658b59ac]
mov dword [esp + 0x3c], ecx
lea edi, [esp + 0x8c]
xor eax, eax
call fcn.6585fce9
mov ecx, dword [esp + 0x3c]
cmp ecx, 8
jg 0x65859ee0
lea edi, [esp + 0xf4]
call fcn.6585fccd
lea ecx, [esp + 0xf4]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x3c]
lea eax, [0x658d41a0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 8], ecx
call fcn.6580c540
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
lea ecx, [0x65a0e1c4]
mov dword [esp], ecx
call fcn.65802840
mov eax, dword [esp + 4]
test eax, eax
je 0x65859f25
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
jmp 0x65859f2b
xor ebx, ebx
xor edx, edx
xor ebp, ebp
test ebx, ebx
jbe 0x6585a34c
mov eax, dword [edx]
lea ecx, [ebp - 1]
neg ecx
sar ecx, 0x1f
and ecx, 4
add ecx, edx
mov dword [esp + 0x6c], ecx
lea edx, [ebx - 1]
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0x48]
xor ebp, ebp
jmp 0x65859f67
add esp, 0x180
ret
inc ebp
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x3c]
mov eax, esi
cmp ebp, edx
jge 0x6585a0a6
mov dword [esp + 0x38], ebp
mov dword [esp + 0x58], eax
mov esi, dword [ecx + ebp*4]
mov dword [esp + 0x68], esi
mov edi, dword [eax + 0xa8]
mov dword [esp + 0x64], edi
mov ecx, dword [eax + 0xac]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
jmp 0x6585a0d2
mov eax, dword [esi + 0x108]
test eax, eax
jne 0x65859f5c
mov eax, dword [esi + 0xac]
lea ecx, [0x658d4020]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
call fcn.6580c540
mov eax, dword [esp + 0xc]
mov ecx, dword [0x65a0e72c]
lea edx, [ecx + 1]
mov ebx, dword [0x65a0e728]
mov ebp, dword [0x65a0e730]
cmp ebp, edx
jae 0x6585a043
mov dword [esp + 0x4c], eax
lea eax, [0x658d4020]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.65849be0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [0x65a0e730], edx
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x6585a032
mov dword [0x65a0e728], eax
jmp 0x6585a03d
lea edi, [0x65a0e728]
call fcn.6585fb10
mov ebx, eax
mov eax, dword [esp + 0x4c]
lea edx, [ecx + 1]
mov dword [0x65a0e72c], edx
mov edx, dword [0x65a345b0]
lea edi, [ebx + ecx*4]
test edx, edx
jne 0x6585a068
mov dword [ebx + ecx*4], eax
mov ecx, dword [esp + 0x68]
mov dword [ecx + 0x108], eax
jmp 0x6585a07c
call fcn.6585fb10
mov ecx, dword [esp + 0x68]
lea edi, [ecx + 0x108]
call fcn.6585fb10
mov eax, dword [ecx + 0xa8]
mov dword [esp + 0x64], eax
mov edx, dword [ecx + 0xac]
mov dword [esp + 0x34], edx
xor ebx, ebx
jmp 0x6585a215
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x38]
mov esi, ecx
jmp 0x65859f5c
add esp, 0x180
ret
mov eax, dword [esp + 0x30]
inc eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jge 0x65859fa5
mov ebp, dword [edi + edx*4]
mov esi, dword [eax + 0x108]
test esi, esi
jne 0x6585a0f5
mov esi, dword [eax + 0x8c]
add ebp, esi
jmp 0x6585a115
lea eax, [0x658d4020]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.6580df20
mov eax, dword [esp + 0xc]
mov ebp, dword [eax]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x54], ebp
mov eax, dword [ebp + 8]
lea ecx, [0x658d41a0]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.6580df20
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov ebx, dword [esp + 0x54]
xor ebp, ebp
jmp 0x6585a338
lea ebp, [ecx + 1]
cmp eax, ebp
jae 0x6585a18b
mov dword [esp + 0x20], ecx
lea ebx, [0x658dc1e0]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
call fcn.65849be0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebp, [eax + 1]
mov ebx, dword [esp + 0x54]
mov eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], eax
mov esi, dword [0x65a345b0]
lea edi, [edx + ecx*4]
test esi, esi
jne 0x6585a1a9
mov dword [edx + ecx*4], ebx
jmp 0x6585a1b0
mov eax, ebx
call fcn.6585fb10
mov eax, dword [ebx + 8]
lea ecx, [0x658d41a0]
mov dword [esp], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.6580e1d0
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 8], eax
mov eax, dword [0x65a345b0]
test eax, eax
jne 0x6585a1f4
mov eax, dword [esp + 0x5c]
mov dword [edi], eax
jmp 0x6585a0ad
mov eax, dword [esp + 0x5c]
call fcn.6585fb10
jmp 0x6585a0ad
mov ebp, dword [esp + 0x30]
lea ebx, [ebp + 1]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
cmp ebx, edx
jge 0x6585a097
mov dword [esp + 0x30], ebx
mov edx, dword [eax + ebx*4]
mov dword [esp + 0x24], edx
mov ebp, dword [ecx + 0x8c]
add ebp, edx
mov dword [esp + 0x60], ebp
mov esi, dword [ebp + 8]
lea edi, [0x658d41a0]
mov dword [esp], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 4], edi
mov dword [esp + 8], esi
call fcn.6580df20
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
xor edx, edx
jmp 0x6585a2d0
mov eax, dword [esp + 0x50]
jmp 0x6585a270
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x108]
lea ebx, [0x658d4020]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 8], edx
call fcn.6580e1d0
mov edi, dword [esp + 0xc]
test byte [edi], al
mov eax, dword [0x65a345b0]
test eax, eax
jne 0x6585a2b3
mov eax, dword [esp + 0x50]
mov dword [edi], eax
jmp 0x6585a202
mov eax, dword [esp + 0x50]
call fcn.6585fb10
jmp 0x6585a202
mov ebx, dword [esp + 0x28]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
cmp edx, eax
jge 0x6585a26c
mov dword [esp + 0x28], edx
mov ebx, dword [ecx + edx*4]
mov dword [esp + 0x50], ebx
lea edi, [esp + 0x70]
xor eax, eax
call fcn.6585fce9
lea edi, [esp + 0xa8]
call fcn.6585fcdd
lea ecx, [esp + 0xa8]
mov dword [esp + 0x7c], ecx
call fcn.6584e630
mov ecx, dword [esp]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
lea ebx, [esp + 0x70]
mov dword [esp + 8], ebx
call fcn.6585a360
movzx ecx, byte [esp + 0xc]
test cl, cl
je 0x6585a2c1
jmp 0x6585a266
inc ebp
cmp ebp, ecx
jge 0x6585a149
lea esi, [edx + ebp*4]
cmp dword [esi], ebx
jne 0x6585a337
jmp 0x6585a0ad
xor eax, eax
mov ecx, eax
call fcn.6585fb90
nop
call fcn.6585e6e0
jmp fcn.65859e70