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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x585c0b
sub esp, 0x54
lea eax, [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.0053e4e0
movzx eax, byte [esp + 0xc]
test al, al
je 0x585935
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x5859a7
lea eax, [0x647880]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x21
lea ecx, [0x67e2d9]
mov dword [eax], ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x6d2f90]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x54
ret
mov esi, edi
mov edi, eax
mov eax, edx
mov edx, ecx
mov ecx, ebx
mov ebx, edi
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x585b84
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea eax, [esp + 0x58]
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.0053dde0
movzx eax, byte [esp + 8]
test al, al
je 0x585b1e
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ebx, dword [0xe6dbf0]
mov ebp, dword [0xe6dbf4]
xor eax, eax
jmp 0x585bb9
mov eax, 0
jge 0x585a8c
mov ecx, dword [esp + 0x28]
inc ecx
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jb 0x585a39
mov ebx, dword [esp + 0x40]
jmp 0x585a77
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x63dbe0]
mov dword [esp + 0x10], eax
call fcn.00447550
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, ecx
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [ebx + ecx*4 - 4], eax
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x3c]
jmp 0x58599b
mov ecx, dword [esp + 0x20]
inc ecx
mov edx, dword [esp + 0x24]
cmp edx, ecx
jb 0x585aa1
mov ebp, dword [esp + 0x3c]
mov ebx, edx
jmp 0x585ad3
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x64c060]
mov dword [esp + 0x10], eax
call fcn.00447550
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [ecx + ecx*2]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov edi, ecx
mov ecx, dword [esp + 0x50]
mov dword [ebp + edx*4 - 8], esi
mov dword [ebp + edx*4 - 4], ecx
mov ecx, dword [0xe996c0]
lea esi, [ebp + edx*4 - 0xc]
test ecx, ecx
jne 0x585b00
mov dword [ebp + edx*4 - 0xc], eax
jmp 0x585b0b
mov ecx, edi
mov edi, esi
call fcn.0045efc0
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, ebx
mov ebx, dword [esp + 0x40]
jmp 0x58599b
lea eax, [0x647880]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x21
lea ecx, [0x67e2d9]
mov dword [eax], ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x6d2f90]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x54
ret
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x54
ret
lea ebx, [esi + 0x10]
inc eax
mov ebp, edi
cmp eax, ebp
jge 0x585a1f
mov esi, ebx
mov edi, ebp
mov ebp, dword [ebx]
mov dword [esp + 0x38], ebp
mov ebp, dword [ebx + 4]
cmp dword [ebx + 8], ecx
jne 0x585bb3
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], esi
xor ebx, ebx
jmp 0x585bee
mov esi, dword [esp + 0x34]
jmp 0x585bb3
inc ebx
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
cmp ebx, ecx
jge 0x585c00
mov esi, dword [edx + ebx*4]
lea ebp, [ebp + ebx*4]
cmp dword [ebp], esi
je 0x585be5
jmp 0x585bdf
cmp eax, edi
mov eax, dword [esp + 0x38]
jmp 0x585a24
call fcn.0045dbb0
jmp fcn.005858f0