Function at 0x1005f3b1
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10096fb2
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x100ae210]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x100ae210]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x38]
push 0x10078f2b
push 0x10078e74
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x3c]
push 0xa
mov dword [esp + 0x30], eax
push 4
lea eax, [esp + 0xb0]
push eax
mov ebx, ecx
mov edi, edx
call fcn.1007cbb5
and dword [esp + 0xd8], 0
mov eax, edi
lea edi, [esp + 0xa0]
call fcn.100584b9
mov eax, ebx
lea edi, [esp + 0xa4]
call fcn.100584b9
lea eax, [esp + 0x18]
push eax
call fcn.100276ac
lea edi, [esp + 0xa8]
mov byte [esp + 0xd8], 1
call fcn.100584b9
mov byte [esp + 0xd8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [0x100aee70]
mov ebx, 0x100aee70
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push dword [ebp + 0x2c]
lea eax, [esp + 0x1c]
push 0x10005110
push eax
mov byte [esp + 0xe4], 2
call fcn.10078b7a
add esp, 0xc
lea eax, [esp + 0x18]
lea edi, [esp + 0xac]
call fcn.100584b9
mov eax, esi
lea edi, [esp + 0xb0]
call fcn.100584b9
mov eax, dword [0x100aee70]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, 0x10013910
push esi
lea eax, [esp + 0x2c]
mov byte [esp + 0xdc], 3
mov edi, dword [esp + 0x2c]
push eax
call fcn.10058c7a
lea edi, [esp + 0x14]
mov byte [esp + 0xd8], 4
call fcn.100584b9
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.10078f0e
mov edi, dword [esp + 0x34]
push esi
lea eax, [esp + 0x38]
push eax
call fcn.10058c7a
mov byte [esp + 0xd8], 5
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.1005ff21
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.10078f0e
mov edi, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x20]
push eax
call fcn.10058c7a
mov byte [esp + 0xd8], 6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.1005ff21
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
push 5
push 0x10004110
lea eax, [esp + 0x1c]
call fcn.1005ff21
lea eax, [esp + 0x14]
lea edi, [esp + 0xb4]
call fcn.100584b9
push dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
call fcn.10062e83
lea edi, [esp + 0xb8]
mov byte [esp + 0xd8], 7
call fcn.100584b9
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [esp + 0x20]
lea edi, [esp + 0xbc]
call fcn.100584b9
mov eax, dword [esp + 0x24]
lea edi, [esp + 0xc0]
call fcn.100584b9
push 9
pop ecx
xor eax, eax
mov dword [esp + 0x78], 0x10018760
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [esp + 0x78]
mov byte [esp + 0xd8], 8
call fcn.10024da1
test al, al
je 0x1005f713
xor edi, edi
mov esi, 0x1001a754
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xdc], 9
call fcn.10027b8f
push dword [esp + 0x44]
lea ecx, [esp + 0xa4]
push ecx
push eax
push dword [ebp + 0x30]
xor edx, edx
push dword [esp + 0x4c]
lea ecx, [esp + 0x64]
mov byte [esp + 0xec], 0xa
call fcn.10055ae2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.10078f0e
cmp dword [esp + 0x20], edi
jne 0x1005f6fe
mov dword [esp + 0x50], esi
lea esi, [esp + 0x50]
call fcn.10055e5b
jmp 0x1005f7b8
mov byte [esp + 0xd8], 8
mov dword [esp + 0x50], esi
lea esi, [esp + 0x50]
call fcn.10055e5b
mov ecx, ebx
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], 0x1001a77c
call fcn.10078e54
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xdc], 0xb
call fcn.10027b8f
push dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push dword [ebp + 0x28]
lea edx, [esp + 0xa8]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x5c]
push dword [ebp + 0xc]
mov byte [esp + 0xec], 0xc
push eax
call fcn.1005604f
mov edi, esi
mov byte [esp + 0xd8], 0xd
call fcn.100584b9
mov byte [esp + 0xd8], 0xc
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, esi
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [eax + 4]
lea eax, [esp + 0x2c]
push eax
call fcn.100569c0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
call fcn.10078f0e
lea ecx, [esp + 0x2c]
call fcn.10055f6a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x78], 0x10018760
call fcn.10078f0e
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
or dword [esp + 0xd8], 0xffffffff
push 0x10078f2b
push 0xa
push 4
lea eax, [esp + 0xac]
push eax
call fcn.1007b825
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.1007b091
mov esp, ebp
pop ebp
ret 0x38