Function at 0x4065c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45286d
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x462010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, 0x8000000
mov ecx, dword [ebp + 0x10]
test al, al
mov esi, 0x10
mov dword [ebp - 0xe4], eax
cmove edx, esi
mov dword [ebp - 0xb8], 0
xor edi, edi
mov dword [ebp - 0xe8], ecx
mov eax, 0xf
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xb8], 0
mov esi, 1
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], esi
jle 0x4067f2
nop word [eax + eax]
mov edx, dword [ecx + esi*4]
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406681
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004053f0
mov dword [ebp - 0x40], 0
mov eax, 0x225c
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 2
mov word [ebp - 0x40], ax
mov byte [ebp - 0x3e], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 1
mov word [ebp - 0x88], 0x22
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405c10
mov edx, dword [ebp - 0x74]
add esp, 0xc
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x40672d
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406723
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fdd
push edx
push ecx
call fcn.00407e59
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x406765
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40675b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fdd
push edx
push ecx
call fcn.00407e59
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xb8]
push eax
call fcn.004061c0
push 1
push 0x453558
lea ecx, [ebp - 0xb8]
call fcn.004061c0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4067c9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4067bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fdd
push edx
push ecx
call fcn.00407e59
add esp, 8
inc esi
cmp esi, dword [ebp + 0xc]
jge 0x4067da
mov ecx, dword [ebp - 0xe8]
jmp 0x406660
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xf0], eax
xor eax, eax
mov dword [ebp - 0x58], 0
cmp byte [ebp - 0xe4], al
mov ecx, 5
mov dword [ebp - 0x48], 0
cmove eax, ecx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0xec], eax
xor eax, eax
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
call fcn.00403a90
add esp, 4
xor edi, edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40687e
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406868
lea ecx, [ebp - 0xdc]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40688b
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40688b
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0xdc]
mov esi, dword [ebp - 0xb8]
mov dword [ebp - 0xe8], esi
cmp ax, 9
jne 0x4068ab
mov edi, 1
jmp 0x4068b4
test ax, ax
jne 0x406f1a
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov ecx, dword [ebp - 0x48]
test edi, edi
mov edi, 0x7ffffffe
mov byte [ebp - 4], 6
mov eax, edi
je 0x4068f5
sub eax, ecx
cmp eax, 0x13
jb 0x406fce
push 0x13
push str.preinst_amd64R.exe
jmp 0x406907
sub eax, ecx
cmp eax, 0x11
jb 0x406fce
push 0x11
push str.preinst_x86R.exe
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push ecx
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xe0]
call fcn.00405860
movups xmm0, xmmword [ebp - 0x40]
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xb8]
sub esp, 0x18
mov edx, 0x7fffffff
cmp dword [ebp - 0xf8], 0x10
mov esi, esp
movups xmmword [ebp - 0x70], xmm0
cmovae ecx, dword [ebp - 0xe8]
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x60], xmm0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0xfc], ecx
cmp eax, 0x10
jae 0x406988
movups xmm0, xmmword [ecx]
mov eax, 0xf
movups xmmword [esi], xmm0
jmp 0x4069fa
or eax, 0xf
cmp eax, 0x7fffffff
cmova eax, edx
mov dword [ebp - 0xf4], eax
inc eax
cmp eax, 0x1000
jb 0x4069c8
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x406fd3
push ecx
call fcn.00407e29
add esp, 4
test eax, eax
je 0x406fdd
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4069db
test eax, eax
je 0x4069d9
push eax
call fcn.00407e29
add esp, 4
mov ecx, eax
jmp 0x4069db
xor ecx, ecx
mov eax, dword [ebp - 0xf0]
inc eax
mov dword [esi], ecx
push eax
push dword [ebp - 0xfc]
push ecx
call fcn.00409740
mov eax, dword [ebp - 0xf4]
add esp, 0xc
mov ecx, dword [ebp - 0xf0]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404b60
add esp, 0x1c
mov esi, eax
mov ecx, dword [ebp - 0x60]
sub edi, ecx
mov byte [ebp - 4], 7
cmp edi, 1
jb 0x406fd8
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push ecx
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x40]
push eax
push 1
push 0x45363c
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0xe0]
call fcn.00405860
push 2
push 0x453634
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.00406320
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push esi
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 9
push eax
push dword [ebp - 0xe0]
lea ecx, [ebp - 0xd0]
call fcn.004056b0
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x406ae4
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406ada
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fdd
push edx
push ecx
call fcn.00407e59
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x406b22
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406b18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fdd
push edx
push ecx
call fcn.00407e59
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
cmp edx, 8
jb 0x406b74
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406b6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fdd
push edx
push ecx
call fcn.00407e59
add esp, 8
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xec]
lea eax, [ebp - 0x58]
push dword [ebp - 0xe0]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe0], esp
push eax
call fcn.00405620
sub esp, 0x18
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0xd0]
mov ecx, esp
push eax
call fcn.00405620
push dword [ebp - 0xe4]
mov byte [ebp - 4], 0xf
call fcn.00405db0
mov ecx, dword [ebp - 0x14]
add esp, 0x44
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xec], edi
test al, al
je 0x406ced
sub esp, 0x18
lea eax, [ebp - 0x28]
mov esi, esp
cmp ecx, 0x10
mov ecx, dword [ebp - 0x18]
cmovae eax, edi
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp ecx, 0x10
jae 0x406c5e
movups xmm0, xmmword [eax]
mov edi, 0xf
movups xmmword [esi], xmm0
jmp 0x406cd4
mov edi, ecx
mov eax, 0x7fffffff
or edi, 0xf
cmp edi, 0x7fffffff
cmova edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x406ca2
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x406fe2
push ecx
call fcn.00407e29
add esp, 4
test eax, eax
je 0x406fe7
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x406cb5
test eax, eax
je 0x406cb3
push eax
call fcn.00407e29
add esp, 4
mov ecx, eax
jmp 0x406cb5
xor ecx, ecx
mov eax, dword [ebp - 0xe4]
inc eax
mov dword [esi], ecx
push eax
push dword [ebp - 0xe0]
push ecx
call fcn.00409740
mov ecx, dword [ebp - 0xe4]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edi
call fcn.00407200
mov edi, dword [ebp - 0xec]
add esp, 0x18
jmp 0x406db7
cmp byte [ebp - 0xe4], 0
lea eax, [ebp - 0xa0]
je 0x406d48
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe0], esp
push eax
call fcn.00405620
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
push 0
push 0x4535b8
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.004053f0
push 1
mov byte [ebp - 4], 0xf
call fcn.00406ff0
add esp, 0x38
jmp 0x406db7
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00405620
lea eax, [ebp - 0x40]
push eax
call fcn.00404d10
add esp, 0x1c
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x12
jb 0x406d72
mov edx, dword [edx]
mov ecx, edx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea eax, [ecx + 1]
mov dword [ebp - 0xe0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d91
sub ecx, dword [ebp - 0xe0]
push ecx
push edx
mov ecx, esi
call fcn.004053f0
call fcn.00407200
add esp, 0x18
lea ecx, [ebp - 0x40]
call fcn.004040a0
mov ecx, dword [ebp - 0xf4]
cmp ecx, 0x10
jb 0x406deb
inc ecx
mov eax, edi
cmp ecx, 0x1000
jb 0x406de1
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fe7
push ecx
push edi
call fcn.00407e59
add esp, 8
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x406e2b
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406e21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fe7
push edx
push ecx
call fcn.00407e59
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.00403960
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x406e8d
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406e83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fe7
push edx
push ecx
call fcn.00407e59
add esp, 8
mov esi, dword [ebp - 0xe8]
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x406ecd
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406ec3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fe7
push edx
push ecx
call fcn.00407e59
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x44], 7
cmp eax, 0x10
jb 0x406fb1
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x406fa7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fe7
jmp 0x406fa7
cmp byte [ebp - 0xe4], 0
je 0x406f78
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe0], esp
push 0x2b
push 0x453560
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], 7
call fcn.00403ca0
sub esp, 0x18
mov byte [ebp - 4], 5
mov eax, esp
push 1
mov dword [eax], 0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [ebp - 4], 4
call fcn.00406ff0
add esp, 0x38
jmp 0x406e93
push str.error:_system_is_not_X86_or_amd64_platform_
push 1
call fcn.0042f029
add esp, 4
push eax
call fcn.004074e0
push 1
call fcn.0042f029
push eax
call fcn.0042f731
add esp, 0x10
call fcn.0042f8f4
jmp 0x406e93
push ecx
push esi
call fcn.00407e59
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407e67
mov esp, ebp
pop ebp
ret
call fcn.00403c30
call fcn.00403c10
call fcn.00403c30
call fcn.0042ee77
call fcn.00403c10
call fcn.0042ee77
int3