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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6584bce8
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x6584b8e8
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.6584e7e0
mov eax, dword [esp + 0x18]
cmp dword [esp + 8], eax
jne 0x6584b658
mov ecx, 0xffffffff
jmp 0x6584b68f
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.6584f630
mov eax, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp ecx, 0xffffffff
jne 0x6584b696
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 0x6584b735
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x58]
cmp byte [ebp + 0x27], 1
ja 0x6584b6c2
xor esi, esi
jmp 0x6584b6f2
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 0x6584bc13
mov edi, dword [esi]
test edi, edi
jle 0x6584bc13
mov ebx, dword [esi + 4]
test ebx, ebx
jle 0x6584b72f
mov dword [esp + 0x44], esi
test ecx, ecx
jl 0x6584bb09
cmp ecx, edi
jge 0x6584bb09
nop
lea edi, [ebx + 7]
sar edi, 3
imul edi, ecx
lea esi, [esi + edi + 8]
jmp 0x6584b73d
xor ebx, ebx
xor esi, esi
jmp 0x6584b73d
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 0x6584b7f4
mov edx, dword [edx + 0x28]
test edx, edx
je 0x6584b76e
mov ecx, dword [edx + 4]
mov edx, dword [edx]
shr edi, 2
cmp edx, edi
jg 0x6584b7f8
mov edi, edx
jmp 0x6584b7f8
movzx edx, byte [ebp + 0x27]
test dl, dl
ja 0x6584b77a
xor edx, edx
jmp 0x6584b7ac
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 0x6584ba34
mov edi, dword [edx]
test edi, edi
jle 0x6584ba34
mov dword [esp + 0x40], edx
test ecx, ecx
jl 0x6584b92a
cmp ecx, edi
jge 0x6584b92a
mov edi, dword [edx + 4]
test edi, edi
jle 0x6584b7ea
mov eax, esi
lea esi, [edi + 7]
sar esi, 3
imul ecx, esi
lea ecx, [edx + ecx + 8]
jmp 0x6584b7f0
mov eax, esi
xor edi, edi
xor ecx, ecx
mov esi, eax
jmp 0x6584b7f8
xor edi, edi
xor ecx, ecx
cmp byte [ebp + 0x27], 2
ja 0x6584b802
xor eax, eax
jmp 0x6584b834
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 0x6584b8be
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], edi
mov edx, dword [eax]
mov dword [esp + 0x24], edx
nop
test edx, edx
jge 0x6584b870
mov dword [esp + 0x3c], eax
call fcn.65848a80
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 0x6584b89b
mov eax, dword [esp + 0x48]
mov edx, eax
neg eax
cmp ebp, eax
jbe 0x6584b8b4
call fcn.65848a80
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 0x6584b8c2
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.6584f0c0
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.65837c40
lea eax, [0x658e9ee2]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.65838520
mov eax, dword [esp + 0x20]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.65838320
lea eax, [0x658e62fd]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.65838520
mov eax, dword [esp + 0x38]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.65838320
lea eax, [0x658ecea5]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
call fcn.65838520
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.65838520
lea eax, [0x658e72df]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.65838520
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.658383a0
lea eax, [0x658e5ffd]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.65838520
call fcn.65837cb0
lea eax, [0x658e8d0a]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65836520
mov dword [esp], ebp
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call fcn.6584f0c0
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.65837c40
lea eax, [0x658e88f3]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.65838520
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.65838520
lea eax, [0x658e80b9]
mov dword [esp], eax
mov dword [esp + 4], 0xe
call fcn.65838520
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.658383a0
lea eax, [0x658e5fd7]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.65838520
mov dword [esp + 4], 0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.658383a0
call fcn.65837e60
call fcn.65837cb0
lea eax, [0x658e8dca]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65836520
mov dword [esp], ebp
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call fcn.6584f0c0
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.65837c40
lea eax, [0x658e9ee2]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.65838520
mov eax, dword [esp + 0x20]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.65838320
lea eax, [0x658e62fd]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.65838520
mov eax, dword [esp + 0x38]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.65838320
lea eax, [0x658ed903]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
call fcn.65838520
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.65838520
lea eax, [0x658e72df]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.65838520
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.658383a0
lea eax, [0x658e5ffd]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.65838520
call fcn.65837cb0
lea eax, [0x658e8d0a]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65836520
mov dword [esp], ebp
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call fcn.6584f0c0
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.65837c40
lea eax, [0x658e88f3]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.65838520
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.65838520
lea eax, [0x658e89aa]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65838520
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp], eax
call fcn.658383a0
lea eax, [0x658e5fd7]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.65838520
mov dword [esp + 4], 0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.658383a0
call fcn.65837e60
call fcn.65837cb0
lea eax, [0x658e8dca]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.65836520
nop
call fcn.6585d300
jmp fcn.6584b600