Function at 0x4154e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
lea eax, [ebp - 0x60]
mov dword [ebp - 8], ecx
xor ebx, ebx
mov dword [ebp - 0x14], 0
xor esi, esi
mov dword [ebp - 0x10], ebx
push eax
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x3c]
push 0x1c
push eax
push esi
push dword [edx]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x4157e7
nop word [eax + eax]
cmp dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
jbe 0x4157ba
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4155d8
cmp dword [ebp - 0x34], 0
je 0x415683
push 0x30
call fcn.00416174
mov esi, dword [ebp - 0x3c]
mov edi, eax
mov edx, dword [ebp - 0x38]
add esp, 4
mov ecx, dword [ebp - 0x34]
sub esi, edx
add esi, dword [ebp - 0x30]
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 8]
mov dword [edi + 4], ecx
mov dword [edi], 0
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], edi
mov dword [esi + 4], edi
mov dword [ebp - 0x14], eax
mov dword [esi + 8], 1
jmp 0x415683
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x14]
jne 0x4155f0
mov eax, dword [ebp - 0x3c]
sub eax, ecx
add eax, dword [ebp - 0x30]
mov dword [edi + 0x10], eax
jmp 0x415683
cmp dword [ebp - 0x34], 0
je 0x415680
push 0x30
call fcn.00416174
mov edx, dword [ebp - 0x3c]
add esp, 4
mov esi, dword [ebp - 0x38]
sub edx, esi
add edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], ecx
mov dword [eax], 0
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [ebp - 0x14], eax
cmp esi, dword [edi + 8]
jae 0x415662
mov dword [eax + 0x20], edi
jmp 0x415675
lea ecx, [edi + 0x20]
mov edi, dword [ecx]
test edi, edi
je 0x415673
cmp esi, dword [edi + 8]
jae 0x415662
mov dword [eax + 0x20], edi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x38]
mov edi, eax
mov eax, dword [ebp - 8]
inc dword [eax + 8]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x2c], 0x1000
jne 0x4157b7
mov eax, dword [ebp - 0x28]
cmp eax, 4
je 0x4156b6
cmp eax, 0x40
je 0x4156b6
cmp dword [ebp + 8], 0
jne 0x4156b6
cmp dword [ebp + 0xc], 0
je 0x4157b7
cmp eax, 8
jne 0x4157b7
push 0x30
call fcn.00416174
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
test ebx, ebx
jne 0x415738
mov edx, dword [ebp - 8]
mov ecx, eax
mov esi, eax
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
mov dword [edx + 0xc], eax
add edx, 0x10
mov dword [edx], 1
jmp 0x415796
cmp edx, dword [ebx + 8]
jae 0x415742
mov dword [eax + 0x20], ebx
jmp 0x415755
lea ecx, [ebx + 0x20]
mov ebx, dword [ecx]
test ebx, ebx
je 0x415753
cmp edx, dword [ebx + 8]
jae 0x415742
mov dword [eax + 0x20], ebx
mov dword [ecx], eax
mov edx, dword [ebp - 8]
mov ebx, eax
mov esi, dword [ebp - 0x18]
add edx, 0x10
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0xc], esi
mov ecx, dword [edx]
mov esi, dword [ebp - 0x20]
inc ecx
mov dword [edx], ecx
mov dword [ebp - 4], esi
cmp ecx, 0x8000
jbe 0x415793
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], esi
mov dword [ecx + 0x24], eax
mov ecx, dword [ecx + 0x20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
jmp 0x415796
mov ecx, dword [ebp - 0xc]
cmp dword [edx], 0x400
jbe 0x4157a7
mov dword [ecx + 0x28], eax
mov ecx, dword [ecx + 0x20]
mov dword [ebp - 0xc], ecx
cmp dword [edx], 0x20
jbe 0x4157ba
mov dword [esi + 0x2c], eax
mov esi, dword [esi + 0x20]
mov dword [ebp - 4], esi
jmp 0x4157ba
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
cmovb ecx, dword [ebp - 0x5c]
add eax, ecx
mov dword [ebp - 0x30], ecx
push 0x1c
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x415530
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8