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

Disassembly:
mov ecx, dword [0x84873c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x584b2d
sub esp, 0x54
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
nop
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.004f0c60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
lea ecx, [0x64c660]
mov dword [esp], ecx
lea ecx, [eax + 7]
sar ecx, 0x1f
shr ecx, 0x1d
lea ecx, [ecx + eax + 7]
sar ecx, 3
mov dword [esp + 0x2c], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044f930
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x58494c
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
test ecx, ecx
jne 0x584ae7
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
nop
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004b0340
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
jne 0x584ab0
mov edx, dword [esp + 0x2c]
test edx, edx
jbe 0x584b23
mov ebx, dword [0x81db64]
mov ebp, dword [esp + 0x24]
mov esi, ebp
sar ebp, 0x1f
shr ebp, 0x1d
add ebp, esi
and ebp, 0xfffffff8
sub esi, ebp
cmp ebx, esi
jbe 0x584b1a
mov ebx, dword [esp + 0x40]
movzx ebp, byte [ebx]
mov edi, dword [0x81db60]
movzx esi, byte [edi + esi]
and ebp, esi
xchg ebp, eax
mov byte [ebx], al
xchg ebp, eax
cmp edx, 1
jbe 0x584b0e
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 1]
xor eax, 0x42
mov byte [ebx + 1], al
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
call fcn.004f4380
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov byte [esp + 0x44], 0
lea eax, [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.004ea750
mov eax, dword [esp + 8]
test eax, eax
jl 0x584a7f
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
jmp 0x584940
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
mov ebx, dword [esp + 0x40]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebp
call ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jmp 0x584940
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x54
ret
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
add esp, 0x54
ret
mov eax, 1
mov ecx, eax
call fcn.0046a670
mov eax, esi
mov ecx, ebx
call fcn.0046a670
xor eax, eax
mov ecx, eax
call fcn.0046a670
nop
call fcn.00469200
jmp fcn.005848b0