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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6584cdc8
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x6584c9c8
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ebx, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.6584f8c0
mov eax, dword [esp + 0x18]
cmp dword [esp + 8], eax
jne 0x6584c738
mov ecx, 0xffffffff
jmp 0x6584c76f
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
dec eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x10], ebx
call fcn.65850710
mov eax, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp ecx, 0xffffffff
jne 0x6584c776
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x60]
mov ebx, dword [edx + 0x1c]
sub ebx, dword [edx + 0x14]
test ebx, ebx
jbe 0x6584c815
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x58]
cmp byte [ebp + 0x27], 1
ja 0x6584c7a2
xor esi, esi
jmp 0x6584c7d2
lea esi, [ebp + 0x27]
mov edi, dword [ebp + 0x1c]
lea esi, [esi + edi*4 + 5]
mov esi, dword [esi]
cmp esi, 0xffffffff
xchg edi, ebx
sete bl
xchg edi, ebx
mov ebx, dword [esp + 0x54]
mov ebx, dword [ebx + 0x98]
xchg edi, eax
movzx eax, al
xchg edi, eax
dec edi
add ebx, esi
and ebx, edi
mov esi, ebx
mov ebx, dword [esp + 0x1c]
test esi, esi
je 0x6584ccf3
mov edi, dword [esi]
test edi, edi
jle 0x6584ccf3
mov ebx, dword [esi + 4]
test ebx, ebx
jle 0x6584c80f
mov dword [esp + 0x44], esi
test ecx, ecx
jl 0x6584cbe9
cmp ecx, edi
jge 0x6584cbe9
nop
lea edi, [ebx + 7]
sar edi, 3
imul edi, ecx
lea esi, [esi + edi + 8]
jmp 0x6584c81d
xor ebx, ebx
xor esi, esi
jmp 0x6584c81d
mov ebp, dword [esp + 0x58]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x38], ebx
mov edi, dword [edx + 0x24]
test edi, edi
jbe 0x6584c8d4
mov edx, dword [edx + 0x28]
test edx, edx
je 0x6584c84e
mov ecx, dword [edx + 4]
mov edx, dword [edx]
shr edi, 2
cmp edx, edi
jg 0x6584c8d8
mov edi, edx
jmp 0x6584c8d8
movzx edx, byte [ebp + 0x27]
test dl, dl
ja 0x6584c85a
xor edx, edx
jmp 0x6584c88c
lea edx, [ebp + 0x27]
mov edi, dword [ebp + 0x1c]
lea edx, [edx + edi*4 + 1]
mov edx, dword [edx]
cmp edx, 0xffffffff
xchg edi, ebx
sete bl
xchg edi, ebx
mov esi, dword [esp + 0x54]
mov ebx, dword [esi + 0x98]
xchg edi, eax
movzx eax, al
xchg edi, eax
dec edi
add edx, ebx
and edx, edi
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x50]
test edx, edx
je 0x6584cb14
mov edi, dword [edx]
test edi, edi
jle 0x6584cb14
mov dword [esp + 0x40], edx
test ecx, ecx
jl 0x6584ca0a
cmp ecx, edi
jge 0x6584ca0a
mov edi, dword [edx + 4]
test edi, edi
jle 0x6584c8ca
mov eax, esi
lea esi, [edi + 7]
sar esi, 3
imul ecx, esi
lea ecx, [edx + ecx + 8]
jmp 0x6584c8d0
mov eax, esi
xor edi, edi
xor ecx, ecx
mov esi, eax
jmp 0x6584c8d8
xor edi, edi
xor ecx, ecx
cmp byte [ebp + 0x27], 2
ja 0x6584c8e2
xor eax, eax
jmp 0x6584c914
lea edx, [ebp + 0x27]
mov ebp, dword [ebp + 0x1c]
lea edx, [edx + ebp*4 + 9]
mov edx, dword [edx]
cmp edx, 0xffffffff
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov eax, ecx
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx + 0x98]
xchg ebp, eax
movzx eax, al
xchg ebp, eax
dec ebp
add ecx, edx
and ecx, ebp
mov edx, ecx
mov ecx, eax
mov eax, edx
test eax, eax
je 0x6584c99e
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], edi
mov edx, dword [eax]
mov dword [esp + 0x24], edx
nop
test edx, edx
jge 0x6584c950
mov dword [esp + 0x3c], eax
call fcn.65849b60
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
mov ebp, eax
mov eax, 0x10
mul edx
lea edx, [ebp + 4]
mov dword [esp + 0x48], edx
mov ebp, eax
mov eax, 0x10
mov ecx, dword [esp + 0x24]
mul ecx
jo 0x6584c97b
mov eax, dword [esp + 0x48]
mov edx, eax
neg eax
cmp ebp, eax
jbe 0x6584c994
call fcn.65849b60
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
jmp 0x6584c9a2
xor eax, eax
xor edx, edx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
add esp, 0x5c
ret
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x5c
ret
mov dword [esp], ebp
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call fcn.658501a0
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x30], edx
call fcn.65837610
lea eax, [0x658e534f]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.65837ef0
mov eax, dword [esp + 0x20]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.65837cf0
lea eax, [0x658e218e]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.65837ef0
mov eax, dword [esp + 0x38]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.65837cf0
lea eax, [0x658e795f]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
call fcn.65837ef0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.65837ef0
lea eax, [0x658e3012]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.65837ef0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.65837d70
lea eax, [0x658e1e3f]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.65837ef0
call fcn.65837680
lea eax, [0x658e443d]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65835ef0
mov dword [esp], ebp
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call fcn.658501a0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x60]
mov ebx, dword [edx + 0x20]
mov dword [esp + 0x2c], ebx
mov edx, dword [edx + 0x24]
mov dword [esp + 0x28], edx
call fcn.65837610
lea eax, [0x658e4195]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.65837ef0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.65837ef0
lea eax, [0x658e3b7f]
mov dword [esp], eax
mov dword [esp + 4], 0xe
call fcn.65837ef0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.65837d70
lea eax, [0x658e1e17]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.65837ef0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.65837d70
call fcn.65837830
call fcn.65837680
lea eax, [0x658e450d]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65835ef0
mov dword [esp], ebp
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call fcn.658501a0
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x30], edx
call fcn.65837610
lea eax, [0x658e534f]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.65837ef0
mov eax, dword [esp + 0x20]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.65837cf0
lea eax, [0x658e218e]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.65837ef0
mov eax, dword [esp + 0x38]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.65837cf0
lea eax, [0x658e81be]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call fcn.65837ef0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.65837ef0
lea eax, [0x658e3012]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.65837ef0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.65837d70
lea eax, [0x658e1e3f]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.65837ef0
call fcn.65837680
lea eax, [0x658e443d]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65835ef0
mov dword [esp], ebp
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call fcn.658501a0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x60]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x2c], edx
call fcn.65837610
lea eax, [0x658e4195]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.65837ef0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.65837ef0
lea eax, [0x658e423d]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65837ef0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp], eax
call fcn.65837d70
lea eax, [0x658e1e17]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.65837ef0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.65837d70
call fcn.65837830
call fcn.65837680
lea eax, [0x658e450d]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65835ef0
nop
call fcn.6585e6e0
jmp fcn.6584c6e0