Function at 0x407c68
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
call fcn.0044402e
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
push 0x2c
call fcn.0044402e
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
add ebx, 0x14
push ebx
push 0x88
call fcn.0044402e
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4a1b43
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x407cff
push 0
push 0x4010b6a
push 6
call fcn.00444022
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0x9c
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 8]
push eax
push 0x9c
call fcn.0044402e
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 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, 0x80
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
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x407dcb
push 0x95
push 0x4010b6a
push 6
call fcn.00444022
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
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.00444bf0
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 0x407e34
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x407e32
imul eax, dword [edi]
jmp 0x407e27
mov ecx, eax
cmp ecx, 0x80
jle 0x407e41
mov ecx, 0x80
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x80
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.0044401c
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x407ea6
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0x94
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 8]
push eax
push 0x9c
call fcn.0044402e
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 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, 0x80
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
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x407f63
push 0x11b
push 0x4010b6a
push 6
call fcn.00444022
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
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.00444bf0
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 0x407fcc
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x407fca
imul eax, dword [edi]
jmp 0x407fbf
mov ecx, eax
cmp ecx, 0x80
jle 0x407fd9
mov ecx, 0x80
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x80
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.0044401c
add esp, 4
pop eax
test eax, eax
je 0x40826c
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x40814a
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 4
jg 0x40805e
mov eax, str.Windows_NT
jmp 0x408276
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 5
jne 0x40814a
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x408097
mov eax, str.Windows_2000
jmp 0x408276
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 1
jne 0x4080bb
mov eax, str.Windows_XP
jmp 0x408276
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x408140
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp byte [ebx], 1
jne 0x408129
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x14], ebx
push 0x80000301
push 0
push 0xffff
push 0x80000301
push 0
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push 2
mov ebx, 0xc4
call fcn.00446420
add esp, 0x1c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 9
jne 0x408129
mov eax, 1
jmp 0x40812e
mov eax, 0
test eax, eax
je 0x408140
mov eax, str.Windows_XP_x64
jmp 0x408276
mov eax, str.Windows_2003
jmp 0x408276
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 6
jne 0x4081bc
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x40819d
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp byte [ebx], 1
jne 0x408193
mov eax, str.Windows_Vista
jmp 0x408276
mov eax, str.Windows_Server_2008
jmp 0x408276
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 1
jne 0x4081bc
mov eax, str.Windows_7
jmp 0x408276
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 1
jne 0x40824d
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 4
jne 0x40824d
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x40820a
mov eax, str.Windows_95
jmp 0x408276
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0xa
jne 0x40822e
mov eax, str.Windows_98
jmp 0x408276
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0x5a
jne 0x40824d
mov eax, str.Windows_ME
jmp 0x408276
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x40826c
mov eax, str.Win32s
jmp 0x408276
mov eax, str.
jmp 0x408276
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0044401c
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
add ebx, 0x14
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0044401c
add esp, 4
pop ebx
call fcn.0044401c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret