Function at 0x1005f3e3
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 0x10097411
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 0x10079267
push 0x100791a0
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.1007cf55
and dword [esp + 0xd8], 0
mov eax, edi
lea edi, [esp + 0xa0]
call fcn.10058274
mov eax, ebx
lea edi, [esp + 0xa4]
call fcn.10058274
lea eax, [esp + 0x18]
push eax
call fcn.100276f4
lea edi, [esp + 0xa8]
mov byte [esp + 0xd8], 1
call fcn.10058274
mov byte [esp + 0xd8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.1007924a
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.10078ea6
add esp, 0xc
lea eax, [esp + 0x18]
lea edi, [esp + 0xac]
call fcn.10058274
mov eax, esi
lea edi, [esp + 0xb0]
call fcn.10058274
mov eax, dword [0x100aee70]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, 0x100138f8
push esi
lea eax, [esp + 0x2c]
mov byte [esp + 0xdc], 3
mov edi, dword [esp + 0x2c]
push eax
call fcn.10058a35
lea edi, [esp + 0x14]
mov byte [esp + 0xd8], 4
call fcn.10058274
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.1007924a
mov edi, dword [esp + 0x34]
push esi
lea eax, [esp + 0x38]
push eax
call fcn.10058a35
mov byte [esp + 0xd8], 5
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.1005ff5c
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.1007924a
mov edi, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x20]
push eax
call fcn.10058a35
mov byte [esp + 0xd8], 6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.1005ff5c
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
push 5
push 0x10004110
lea eax, [esp + 0x1c]
call fcn.1005ff5c
lea eax, [esp + 0x14]
lea edi, [esp + 0xb4]
call fcn.10058274
push dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
call fcn.10062da5
lea edi, [esp + 0xb8]
mov byte [esp + 0xd8], 7
call fcn.10058274
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [esp + 0x20]
lea edi, [esp + 0xbc]
call fcn.10058274
mov eax, dword [esp + 0x24]
lea edi, [esp + 0xc0]
call fcn.10058274
push 9
pop ecx
xor eax, eax
mov dword [esp + 0x78], 0x10018740
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.10024e01
test al, al
je 0x1005f745
xor edi, edi
mov esi, 0x1001a74c
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.10027bd7
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.10055839
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.1007924a
cmp dword [esp + 0x20], edi
jne 0x1005f730
mov dword [esp + 0x50], esi
lea esi, [esp + 0x50]
call fcn.10055bb2
jmp 0x1005f7ea
mov byte [esp + 0xd8], 8
mov dword [esp + 0x50], esi
lea esi, [esp + 0x50]
call fcn.10055bb2
mov ecx, ebx
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], 0x1001a774
call fcn.10079180
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xdc], 0xb
call fcn.10027bd7
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.10055da6
mov edi, esi
mov byte [esp + 0xd8], 0xd
call fcn.10058274
mov byte [esp + 0xd8], 0xc
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.1007924a
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.10056717
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
call fcn.1007924a
lea ecx, [esp + 0x2c]
call fcn.10055cc1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x78], 0x10018740
call fcn.1007924a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.1007924a
or dword [esp + 0xd8], 0xffffffff
push 0x10079267
push 0xa
push 4
lea eax, [esp + 0xac]
push eax
call fcn.1007bbc5
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.1007b431
mov esp, ebp
pop ebp
ret 0x38