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

Disassembly:
mov ecx, dword [0x7f7460]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x586121
sub esp, 0x90
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 8], eax
call fcn.005859f0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x586112
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebp
mov esi, dword [esp + 0x20]
mov dword [esp + 0x30], esi
mov byte [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004f7a60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x84], eax
mov byte [esp + 0x80], 0
mov byte [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
call fcn.004f7a60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x74], eax
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov ebx, dword [ecx + 0x1c]
mov dword [esp], edx
call ebx
mov eax, dword [esp + 0x88]
test eax, eax
jne 0x585e46
xor eax, eax
jmp 0x585e5e
movzx eax, byte [esp + 0x80]
test al, al
je 0x585e59
mov eax, 0xffffffff
jmp 0x585e5e
mov eax, 1
test eax, eax
jle 0x585e87
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x585e6e
xor eax, eax
jmp 0x585e83
movzx eax, byte [esp + 0x70]
test al, al
je 0x585e7e
mov eax, 0xffffffff
jmp 0x585e83
mov eax, 1
test eax, eax
jg 0x585e96
mov byte [esp + 0xb0], 0
add esp, 0x90
ret
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x80]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ee680
mov eax, dword [esp + 8]
test eax, eax
jge 0x585ed8
lea eax, [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
call fcn.004ee680
mov eax, dword [esp + 8]
test eax, eax
jl 0x585ee7
mov byte [esp + 0xb0], 0
add esp, 0x90
ret
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], ecx
call fcn.00585b80
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea ecx, [esp + 0x60]
mov dword [esp], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
call fcn.004f04b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004ee100
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
call fcn.004ee470
mov eax, dword [esp + 0x44]
mov dword [esp], eax
lea ecx, [esp + 0x80]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004ee100
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
call fcn.004ee470
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.004ee880
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x58]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x48]
mov dword [esp], edx
call fcn.004ee880
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x94]
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
call ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x10]
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x586080
xor ecx, ecx
jmp 0x586093
movzx ecx, byte [eax]
test cl, cl
je 0x58608e
mov ecx, 0xffffffff
jmp 0x586093
mov ecx, 1
test ecx, ecx
jne 0x5860cc
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5860a6
xor ecx, ecx
jmp 0x5860b9
movzx ecx, byte [ecx]
test cl, cl
je 0x5860b4
mov ecx, 0xffffffff
jmp 0x5860b9
mov ecx, 1
test ecx, ecx
jne 0x5860cc
mov byte [esp + 0xb0], 0
add esp, 0x90
ret
mov dword [esp + 0x40], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
call fcn.004ee470
mov eax, dword [esp + 0x40]
mov dword [esp], eax
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
call fcn.004ee680
mov eax, dword [esp + 8]
test eax, eax
sete al
mov byte [esp + 0xb0], al
add esp, 0x90
ret
mov byte [esp + 0xb0], 0
add esp, 0x90
ret
call fcn.00465ea0
jmp fcn.00585cc0