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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x586a0d
sub esp, 0x64
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x586a02
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
xor edx, edx
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x5867c4
add ebx, 0x14
mov edx, dword [esp + 0x68]
mov edx, ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x30], edi
lea edi, [esp + 0x50]
mov esi, ebx
call fcn.004612ce
lea edi, [esp + 0x3c]
lea esi, [esp + 0x50]
call fcn.004612ce
mov ecx, dword [esp + 0x68]
test ecx, ecx
jne 0x5869d1
mov esi, 1
xchg esi, eax
test al, al
xchg esi, eax
jne 0x586913
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
lea ecx, [edx + 1]
cmp ecx, eax
jl 0x5867b7
test ebp, ebp
jne 0x5868e4
mov eax, dword [0x10e4858]
mov ecx, dword [0x10e485c]
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], ecx
lea edx, [0xaee240]
mov dword [esp], edx
call fcn.0040bd00
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov dword [edi + 4], eax
mov eax, dword [0x10fd360]
test eax, eax
jne 0x5868d9
mov ecx, dword [esp + 0x34]
mov dword [edi], ecx
mov ecx, dword [esp + 0x80]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x5868c3
mov eax, dword [esp + 0x7c]
mov dword [edi + 8], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
lea eax, [0xc83220]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edi
add esp, 0x64
ret
lea ecx, [edi + 8]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x7c]
call fcn.00460b40
mov edi, edx
jmp 0x58688a
mov eax, dword [esp + 0x34]
call fcn.00460b40
jmp 0x58686f
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x64
ret
mov edi, esp
lea esi, [esp + 0x3c]
call fcn.004612ce
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + 1]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov ebx, dword [esp + 0x24]
cmp ebx, ecx
jb 0x586987
mov esi, dword [esp + 0x30]
mov edi, ecx
lea ecx, [esi + eax*8]
mov dword [ecx], ebp
mov ecx, dword [0x10fd360]
lea ebp, [esi + eax*8 + 4]
test ecx, ecx
jne 0x586976
mov dword [ebp], edx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
mov ebp, edi
mov edi, esi
mov esi, ebx
mov ebx, dword [esp + 0x38]
jmp 0x586813
mov eax, edi
mov edi, ebp
mov ecx, eax
mov eax, edx
call fcn.00460b40
mov edi, ecx
jmp 0x58695b
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], ebp
lea edx, [0xadd840]
mov dword [esp], edx
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
call fcn.00447080
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
jmp 0x586943
mov edi, esp
lea esi, [esp + 0x50]
call fcn.004612ce
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
movzx esi, byte [esp + 0x14]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x20]
jmp 0x586801
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x58681a
call fcn.0045f5f0
jmp fcn.00586780