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

Disassembly:
push edi
push esi
sub esp, 0x9c
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], 2
add eax, 4
lea ecx, [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00576b70
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
movzx eax, word [eax]
cmp eax, 0
jne 0x585ac7
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
jmp 0x585aed
mov eax, dword [esp + 0x24]
mov ecx, eax
add ecx, 2
mov dword [esp + 0x60], ecx
mov cx, word [eax + 2]
mov word [esp + 0x1a], cx
mov word [esp + 0x64], cx
mov ax, 0xd800
cmp ax, cx
jbe 0x585b31
jmp 0x585b2f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x84], ecx
and eax, 1
mov dword [esp + 0x88], eax
cmp eax, 0
ja 0x585bee
jmp 0x585be4
jmp 0x585b3c
mov ax, word [esp + 0x1a]
cmp ax, 0xdfff
jbe 0x585b5b
mov eax, dword [esp + 0x24]
mov ax, word [eax + 2]
mov word [esp + 0x66], ax
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 1
jmp 0x585aed
mov eax, dword [esp + 0x24]
add eax, 2
mov dword [esp + 0x68], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x6c], eax
lea eax, [0x60b558]
mov dword [esp + 0x70], eax
cmp dword [esp + 0x2c], 0
jne 0x585b81
jmp 0x585ba0
lea eax, [esp + 0x2c]
add eax, 4
mov dword [esp + 0x74], eax
lea eax, [0x60b558]
add eax, 4
mov dword [esp + 0x78], eax
cmp dword [esp + 0x30], 0
je 0x585bc2
mov eax, dword [esp + 0x24]
mov ax, word [eax + 2]
mov word [esp + 0x7c], ax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 1
jmp 0x585aed
mov eax, dword [esp + 0x24]
mov ax, word [eax + 2]
mov word [esp + 0x7e], ax
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 1
jmp 0x585aed
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
jmp 0x585bf9
mov eax, dword [esp + 0x14]
add eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x90], eax
cmp dword [esp + 0x2c], 0
jne 0x585c33
mov ecx, dword [0x60b54c]
mov eax, dword [0x60b550]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
jmp 0x585c5e
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 0x94], eax
add eax, dword [esp + 0x40]
setb al
and al, 1
mov byte [esp + 0x9b], al
test byte [esp + 0x9b], 1
jne 0x585c99
jmp 0x585c83
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov dword [ecx + 8], edx
add esp, 0x9c
pop esi
pop edi
ret
mov eax, dword [esp + 8]
add eax, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 1
jmp 0x585cac
mov ecx, dword [0x60b54c]
mov eax, dword [0x60b550]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
jmp 0x585c5e