Function at 0x40223a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
call fcn.0040e018
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.0040e018
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.0040e018
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4201bd
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 0x4022c7
push 6
call fcn.0040e01e
add esp, 4
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.0040e018
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 [0x420ccf]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402389
push 6
call fcn.0040e01e
add esp, 4
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.0040e3b0
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 0x4023f2
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4023f0
imul eax, dword [edi]
jmp 0x4023e5
mov ecx, eax
cmp ecx, 0x80
jle 0x4023ff
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.0040e012
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x402464
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.0040e018
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 [0x420ccf]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402517
push 6
call fcn.0040e01e
add esp, 4
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.0040e3b0
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 0x402580
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x40257e
imul eax, dword [edi]
jmp 0x402573
mov ecx, eax
cmp ecx, 0x80
jle 0x40258d
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.0040e012
add esp, 4
pop eax
test eax, eax
je 0x402809
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x4026f1
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 4
jg 0x402612
mov eax, str.Windows_NT
jmp 0x402813
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 5
jne 0x4026f1
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x402646
mov eax, str.Windows_2000
jmp 0x402813
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 1
jne 0x402665
mov eax, str.Windows_XP
jmp 0x402813
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x4026f1
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp byte [ebx], 1
jne 0x4026d3
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.0040ed50
add esp, 0x1c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 9
jne 0x4026d3
mov eax, 1
jmp 0x4026d5
xor eax, eax
test eax, eax
je 0x4026e7
mov eax, str.Windows_XP_x64
jmp 0x402813
mov eax, str.Windows_2003
jmp 0x402813
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 6
jne 0x402763
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x402744
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp byte [ebx], 1
jne 0x40273a
mov eax, str.Windows_Vista
jmp 0x402813
mov eax, str.Windows_Server_2008
jmp 0x402813
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 1
jne 0x402763
mov eax, str.Windows_7
jmp 0x402813
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 1
jne 0x4027ea
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 4
jne 0x4027ea
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x4027ac
mov eax, str.Windows_95
jmp 0x402813
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0xa
jne 0x4027cb
mov eax, str.Windows_98
jmp 0x402813
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0x5a
jne 0x4027ea
mov eax, str.Windows_ME
jmp 0x402813
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x402809
mov eax, str.Win_32s
jmp 0x402813
mov eax, str.
jmp 0x402813
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0040e012
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
add ebx, 0x14
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0040e012
add esp, 4
pop ebx
call fcn.0040e012
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret