Function at 0x416f10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x417140
mov dword [ebp - 0x38], 0x48b54c
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00474a10
add esp, 4
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x28]
ja 0x417136
push 0x1c
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x416f8b
jmp 0x417136
cmp dword [ebp - 0x44], 0x1000
jne 0x417128
cmp dword [ebp - 0x40], 4
jne 0x417128
cmp dword [ebp - 0x3c], 0x20000
jne 0x417128
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x48]
cmp dword [ebp - 0x58], eax
jae 0x417128
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x58]
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x60], 0x2000
jbe 0x416fe2
mov dword [ebp - 0x6c], 0x2000
jmp 0x416fe8
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], eax
push 0x2000
push 0
push 0xa547e0
call fcn.00474100
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
push 0xa547e0
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x417118
mov dword [ebp - 0x64], 0
jmp 0x417035
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x5c], 0x2000
jne 0x417047
mov dword [ebp - 0x70], 0
jmp 0x417050
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x70], edx
mov eax, 0x1000
sub eax, dword [ebp - 0x70]
cmp dword [ebp - 0x64], eax
jge 0x417118
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x64]
add eax, 0xa547e0
push eax
call fcn.00474f0f
add esp, 0xc
test eax, eax
jne 0x417113
mov byte [ebp - 0x65], 0
push 0
push 1
lea ecx, [ebp - 0x65]
push ecx
mov edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov byte [ebp - 0x65], 0x61
push 0
push 1
lea ecx, [ebp - 0x65]
push ecx
mov edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x417113
movsx ecx, byte [ebp - 0x65]
test ecx, ecx
jne 0x417113
mov edx, dword [0xa4f820]
add edx, 1
mov dword [0xa4f820], edx
cmp dword [0xa4f820], 0xa
jl 0x417113
push 0
push 0
push 0x15
call fcn.00411ba0
add esp, 0xc
push 0x48b560
call fcn.00411fc0
add esp, 4
push 0x48b578
call fcn.00411fc0
add esp, 4
mov dword [ebp - 8], 1
jmp 0x417136
jmp 0x41702c
mov eax, dword [ebp - 0x58]
add eax, 0x1000
mov dword [ebp - 0x58], eax
jmp 0x416fb5
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x48]
mov dword [ebp - 0xc], ecx
jmp 0x416f61
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret