Function at 0x416980
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416c02
mov dword [ebp - 0x38], str.Dir:
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 0x416bf8
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 0x4169fe
jmp 0x416bf8
cmp dword [ebp - 0x44], 0x1000
jne 0x416bea
cmp dword [ebp - 0x40], 4
jne 0x416bea
cmp dword [ebp - 0x3c], 0x20000
jne 0x416bea
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 0x416bea
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 0x416a58
mov dword [ebp - 0x17c], 0x2000
jmp 0x416a61
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x17c], edx
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x5c], eax
push 0x2000
push 0
push 0xa507e0
call fcn.00474100
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
push 0xa507e0
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 0x416bd9
mov dword [ebp - 0x64], 0
jmp 0x416ab1
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x5c], 0x2000
jne 0x416ac6
mov dword [ebp - 0x180], 0
jmp 0x416ad2
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x180], edx
mov eax, 0x1000
sub eax, dword [ebp - 0x180]
cmp dword [ebp - 0x64], eax
jge 0x416bd9
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x64]
add eax, 0xa507e0
push eax
call fcn.00474f0f
add esp, 0xc
test eax, eax
jne 0x416bd4
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 0xff
jae 0x416b5f
push 0
push 1
mov ecx, dword [ebp - 0x68]
lea edx, [ebp + ecx - 0x178]
push edx
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
lea edx, [eax + ecx + 0x100]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x416b5f
mov ecx, dword [ebp - 0x68]
movsx edx, byte [ebp + ecx - 0x178]
test edx, edx
je 0x416b5f
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
jmp 0x416b0e
mov ecx, dword [ebp - 0x68]
mov byte [ebp + ecx - 0x178], 0
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x178]
push edx
call fcn.00416c10
add esp, 0x10
test eax, eax
je 0x416bd4
call fcn.00410cf0
imul eax, eax, 0x208
add eax, 0x94add8
push eax
mov eax, dword [ebp - 0x74]
imul eax, eax, 0x12e0
mov ecx, dword [ebp - 0x6c]
imul ecx, ecx, 0x11c
lea edx, [eax + ecx + 0x56e454]
mov eax, dword [ebp - 0x70]
imul eax, eax, 0x14
mov ecx, dword [edx + eax + 0x14]
push ecx
call fcn.00474343
add esp, 8
neg eax
sbb eax, eax
add eax, 2
mov dword [ebp - 8], eax
jmp 0x416bf8
jmp 0x416aa8
mov edx, dword [ebp - 0x58]
add edx, 0x1000
mov dword [ebp - 0x58], edx
jmp 0x416a28
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
jmp 0x4169d4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret