Function at 0x5b7599
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1025b0f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
mov eax, dword [0x102fef40]
xor eax, esp
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xc]
mov dword [esp + 0xc8], eax
mov dword [esp + 0x10], esi
mov dword [esi], 0x1028aa20
call dword [0x102763d0]
xor ebx, ebx
push 0x102768f0
lea ecx, [esi + 0x28]
mov dword [esp + 0xd8], ebx
call dword [0x1027639c]
mov ax, word [0x1030553c]
lea ecx, [esi + 0x48]
mov byte [esp + 0xd4], 1
mov word [esi + 0x44], ax
call dword [0x102763d0]
lea edi, [esi + 0x98]
mov byte [esi + 0x84], bl
mov dword [esi + 0x90], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
push 0x1028aa40
lea ecx, [esp + 0x34]
mov byte [esp + 0xd8], 3
call dword [0x1027639c]
push 0x1028aa28
lea ecx, [esp + 0x50]
mov byte [esp + 0xd8], 4
call dword [0x1027639c]
push 0x1028a8f4
lea ecx, [esp + 0x18]
mov byte [esp + 0xd8], 5
call dword [0x1027639c]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [0x10312e58]
mov byte [esp + 0xe4], 6
call fcn.00579774
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 0xa
call dword [0x102763d4]
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd4], 9
call dword [0x102763d4]
lea ecx, [esp + 0x30]
mov byte [esp + 0xd4], 8
call dword [0x102763d4]
cmp dword [esp + 0xc4], 0x10
mov eax, dword [esp + 0xb0]
jae 0x5b76e4
lea eax, [esp + 0xb0]
push 0x10277f18
push eax
call dword [0x102765b0]
add esp, 8
cmp eax, ebx
je 0x5b776f
push ebp
nop
push eax
call dword [0x10276588]
lea edx, [eax - 1]
add esp, 4
cmp edx, 0xfffe
jae 0x5b775b
movzx ecx, word [esi + 0x44]
cmp eax, ecx
je 0x5b775b
mov ebp, dword [edi + 4]
cmp ebp, ebx
mov dword [esp + 0x10], eax
jne 0x5b7725
xor edx, edx
jmp 0x5b772c
mov edx, dword [edi + 8]
sub edx, ebp
sar edx, 1
cmp ebp, ebx
je 0x5b7749
mov ecx, dword [edi + 0xc]
sub ecx, ebp
sar ecx, 1
cmp edx, ecx
jae 0x5b7749
mov ecx, dword [edi + 8]
mov word [ecx], ax
add ecx, 2
mov dword [edi + 8], ecx
jmp 0x5b775b
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, edi
call fcn.005b7329
push 0x10277f18
push ebx
call dword [0x102765b0]
add esp, 8
cmp eax, ebx
jne 0x5b76f9
pop ebp
push ebx
push ebx
push 1
push ebx
call dword [0x102761e4]
cmp eax, ebx
mov dword [esi + 0x80], eax
jne 0x5b77be
push 0x1028a98c
lea ecx, [esp + 0x6c]
call dword [0x1027639c]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xd8], 0xb
call fcn.004a2fe9
push 0x102b6aa0
lea ecx, [esp + 0x88]
push ecx
call fcn.0049cc0d
push ebx
mov dword [esi + 0x7c], ebx
call dword [0x1027647c]
push eax
call dword [0x10276460]
call dword [0x1027648c]
mov dword [0x10314034], eax
push 0xf
push esi
mov dword [esi + 0x74], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x94], ebx
call fcn.005c56e9
add esp, 0x10
lea ecx, [esp + 0xac]
mov byte [esp + 0xd4], 3
call dword [0x102763d4]
mov ecx, dword [esp + 0xcc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc0]
pop ebx
xor ecx, esp
call fcn.0049cbf9
add esp, 0xcc
ret