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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1bc3
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x100b8210]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x100b8210]
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 0x10082b13
push 0x10082a6b
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.100867bc
and dword [esp + 0xd8], 0
mov eax, edi
lea edi, [esp + 0xa0]
call fcn.1005e434
mov eax, ebx
lea edi, [esp + 0xa4]
call fcn.1005e434
lea eax, [esp + 0x18]
push eax
call fcn.1002aa8a
lea edi, [esp + 0xa8]
mov byte [esp + 0xd8], 1
call fcn.1005e434
mov byte [esp + 0xd8], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [0x100b8f90]
mov ebx, 0x100b8f90
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
push dword [ebp + 0x2c]
lea eax, [esp + 0x1c]
push 0x10004be0
push eax
mov byte [esp + 0xe4], 2
call fcn.100827bb
add esp, 0xc
lea eax, [esp + 0x18]
lea edi, [esp + 0xac]
call fcn.1005e434
mov eax, esi
lea edi, [esp + 0xb0]
call fcn.1005e434
mov eax, dword [0x100b8f90]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, 0x10014e68
push esi
lea eax, [esp + 0x2c]
mov byte [esp + 0xdc], 3
mov edi, dword [esp + 0x2c]
push eax
call fcn.1005ebdd
lea edi, [esp + 0x14]
mov byte [esp + 0xd8], 4
call fcn.1005e434
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.10082afb
mov edi, dword [esp + 0x34]
push esi
lea eax, [esp + 0x38]
push eax
call fcn.1005ebdd
mov byte [esp + 0xd8], 5
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.100665e2
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.10082afb
mov edi, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x20]
push eax
call fcn.1005ebdd
mov byte [esp + 0xd8], 6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.100665e2
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10082afb
push 5
push 0x10003bb0
lea eax, [esp + 0x1c]
call fcn.100665e2
lea eax, [esp + 0x14]
lea edi, [esp + 0xb4]
call fcn.1005e434
push dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
call fcn.10069b17
lea edi, [esp + 0xb8]
mov byte [esp + 0xd8], 7
call fcn.1005e434
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [esp + 0x20]
lea edi, [esp + 0xbc]
call fcn.1005e434
mov eax, dword [esp + 0x24]
lea edi, [esp + 0xc0]
call fcn.1005e434
push 9
pop ecx
xor eax, eax
mov dword [esp + 0x78], 0x1001b280
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.10027f9c
test al, al
je 0x10065ce1
xor edi, edi
mov esi, 0x1001d40c
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.1002af34
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.1005b893
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.10082afb
cmp dword [esp + 0x20], edi
jne 0x10065ccc
mov dword [esp + 0x50], esi
lea esi, [esp + 0x50]
call fcn.1005bbcd
jmp 0x10065d86
mov byte [esp + 0xd8], 8
mov dword [esp + 0x50], esi
lea esi, [esp + 0x50]
call fcn.1005bbcd
mov ecx, ebx
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], 0x1001d434
call fcn.10082a50
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xdc], 0xb
call fcn.1002af34
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.1005bda4
mov edi, esi
mov byte [esp + 0xd8], 0xd
call fcn.1005e434
mov byte [esp + 0xd8], 0xc
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.10082afb
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.1005c710
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
call fcn.10082afb
lea ecx, [esp + 0x2c]
call fcn.1005bccb
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x78], 0x1001b280
call fcn.10082afb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10082afb
or dword [esp + 0xd8], 0xffffffff
push 0x10082b13
push 0xa
push 4
lea eax, [esp + 0xac]
push eax
call fcn.10085544
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.10084b58
mov esp, ebp
pop ebp
ret 0x38