Function at 0x404cff
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0x10
call fcn.0043d137
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x2c
call fcn.0043d137
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
cmp dword [0x466626], 0
jne 0x405220
mov ebx, dword [0x46662a]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 8
mov dword [0x46662e], 0xffffffff
mov dword [0x466626], 1
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp + 8]
push 2
mov ebx, 0xc4
call fcn.0043fc50
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x404e0d
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 4]
push 0x466632
xor eax, eax
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404e0d
push 0x171
push 0x40380cd
push 6
call fcn.0043d143
add esp, 0xc
mov ebx, dword [0x466636]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0x11c
mov dword [ebp - 0x14], esp
mov eax, dword [0x466636]
push eax
push 0x11c
call fcn.0043d137
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x100
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov byte [edi], al
inc edi
mov eax, dword [ebx]
add ebx, 4
mov byte [edi], al
inc edi
xor eax, eax
call dword [0x46670a]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404ede
push 0x1e6
push 0x40380cd
push 6
call fcn.0043d143
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0043db40
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x404f47
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x404f45
imul eax, dword [edi]
jmp 0x404f3a
mov ecx, eax
cmp ecx, 0x100
jle 0x404f54
mov ecx, 0x100
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x100
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov al, byte [ebx]
inc ebx
mov dword [edi], eax
add edi, 4
mov al, byte [ebx]
inc ebx
mov dword [edi], eax
add edi, 4
call fcn.0043d131
add esp, 4
pop eax
mov dword [ebp - 0x14], esp
push 0x46440b
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404fcb
push 0x22c
push 0x40380cd
push 6
call fcn.0043d143
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esp
push 0x464418
push dword [ebp - 8]
xor eax, eax
call dword [0x46670e]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404fff
push 0x26b
push 0x40380cd
push 6
call fcn.0043d143
add esp, 0xc
mov dword [0x46663a], eax
mov dword [ebp - 0x14], esp
push 0x464427
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x405032
push 0x2e6
push 0x40380cd
push 6
call fcn.0043d143
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esp
push str.NtQueryVirtualMemory
push dword [ebp - 0xc]
xor eax, eax
call dword [0x46670e]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x405066
push 0x346
push 0x40380cd
push 6
call fcn.0043d143
add esp, 0xc
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x464446]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.004028c4
push 0x80000301
push 0
push eax
push 1
mov ebx, 0xa5c
call fcn.0043fc70
add esp, 0x10
mov dword [0x46663e], eax
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 0x10]
push eax
push 0x24
call fcn.0043d137
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x405158
push 0x399
push 0x40380cd
push 6
call fcn.0043d143
add esp, 0xc
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.0043d131
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp word [ebx], 9
je 0x405203
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp word [ebx], 6
je 0x405203
xor eax, eax
jmp 0x405208
mov eax, 1
mov dword [0x466642], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x18
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov dword [0x466646], eax
mov eax, dword [0x466626]
jmp 0x40522a
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0043d131
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0043d131
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8