Function at 0x406704
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0x10
call fcn.004c4d96
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.004c4d96
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 [0x619e38], 0
jne 0x406c25
mov ebx, dword [0x619e3c]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 8
mov dword [0x619e40], 0xffffffff
mov dword [0x619e38], 1
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp + 8]
push 2
mov ebx, 0xc4
call fcn.004caed0
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x406812
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 0x619e44
xor eax, eax
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x406812
push 0x171
push 0x40fdfd6
push 6
call fcn.004c4d9c
add esp, 0xc
mov ebx, dword [0x619e48]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0x11c
mov dword [ebp - 0x14], esp
mov eax, dword [0x619e48]
push eax
push 0x11c
call fcn.004c4d96
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 [0x61a254]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4068e3
push 0x1e6
push 0x40fdfd6
push 6
call fcn.004c4d9c
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.004c84e0
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 0x40694c
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x40694a
imul eax, dword [edi]
jmp 0x40693f
mov ecx, eax
cmp ecx, 0x100
jle 0x406959
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.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0x14], esp
push 0x532208
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4069d0
push 0x22c
push 0x40fdfd6
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esp
push 0x532218
push dword [ebp - 8]
xor eax, eax
call dword [0x61a258]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x406a04
push 0x26b
push 0x40fdfd6
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [0x619e4c], eax
mov dword [ebp - 0x14], esp
push 0x532228
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x406a37
push 0x2e6
push 0x40fdfd6
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esp
push 0x532234
push dword [ebp - 0xc]
xor eax, eax
call dword [0x61a258]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x406a6b
push 0x346
push 0x40fdfd6
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x4ee33c]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00402744
push 0x80000301
push 0
push eax
push 1
mov ebx, 0xa5c
call fcn.004caef0
add esp, 0x10
mov dword [0x619e50], eax
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 0x10]
push eax
push 0x24
call fcn.004c4d96
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 0x406b5d
push 0x399
push 0x40fdfd6
push 6
call fcn.004c4d9c
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.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp word [ebx], 9
je 0x406c08
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp word [ebx], 6
je 0x406c08
xor eax, eax
jmp 0x406c0d
mov eax, 1
mov dword [0x619e54], 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 [0x619e58], eax
mov eax, dword [0x619e38]
jmp 0x406c2f
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8