Function at 0x5891d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e920f
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5fc7d0]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
push edi
mov eax, dword [0x5fc7d0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], 0
mov dword [esp + 0xc], esi
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0x80000000
mov dword [esi + 0x1c], 0xf
mov dword [esi + 0x18], 0
mov byte [esi + 8], 0
movzx eax, ax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0x80000000
mov dword [esi + 0x30], 0xffffffff
push dword [esp + 0xa0]
mov dword [esp + 0x94], 0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], 1
push eax
call fcn.00588fe0
add esp, 0xc
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
mov dword [esp + 0x90], 1
cmovae eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0x602520
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x90], 2
push ecx
push 0xc0000000
push eax
push 2
lea ecx, [esp + 0x24]
call fcn.0058b830
lea eax, [esp + 0x14]
mov byte [esp + 0x90], 3
push eax
mov ecx, esi
call fcn.005888d0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x90], 4
cmp eax, 0xffffffff
je 0x589312
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x90], 1
jb 0x58932d
push dword [esp + 0x1c]
call fcn.005c40d3
add esp, 4
push 0
push 0x84
mov ecx, esi
call fcn.0058c710
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0xc0000000
push esi
lea ecx, [esp + 0x3c]
call fcn.00586410
push eax
lea ecx, [esi + 0x20]
mov byte [esp + 0x94], 5
call fcn.00588850
mov eax, dword [esp + 0x20]
mov byte [esp + 0x90], 1
test eax, eax
je 0x589388
sub eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x589398
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x20]
lea eax, [esp + 0x40]
push 0x5303bc
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00586aa0
add esp, 0xc
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
cmovae eax, dword [esp + 0x58]
movdqu xmmword [esp + 0x70], xmm0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x80000000
mov dword [esp + 0x80], 0xffffffff
push 1
push 2
lea eax, [esp + 0x40]
mov byte [esp + 0x98], 7
push eax
push 0
push 0xc0000000
push 0xc
lea eax, [esp + 0x54]
push eax
push 2
lea ecx, [esp + 0x90]
call fcn.005870a0
push 1
lea eax, [esp + 0x74]
mov byte [esp + 0x94], 8
push 0xbb8
push eax
call fcn.0058d120
add esp, 0xc
test al, al
jne 0x58946f
push 0x5f27e0
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0xffffffff
push eax
call fcn.005c4b35
lea eax, [esp + 0x70]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00586b90
add esp, 8
mov edx, 1
cmp dword [edi], 0
jne 0x58949c
mov dword [edi], edx
lea ecx, [edi + 4]
mov eax, edx
xchg dword [ecx], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
add eax, 8
lock xadd dword [eax], edx
inc edx
mov eax, dword [esp + 0x70]
mov byte [esp + 0x90], 6
test eax, eax
je 0x5894cd
sub eax, dword [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x70], 0
mov eax, dword [esp + 0x80]
cmp eax, 0xffffffff
je 0x5894eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x6c], 0x10
jb 0x5894fe
push dword [esp + 0x58]
call fcn.005c40d3
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
jb 0x589526
push dword [esp + 0x40]
call fcn.005c40d3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.005c4b26
add esp, 0x88
ret