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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push 0
push esi
mov dword [ebp - 4], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 8], eax
je 0x401a08
push str.GetVersionExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x401d2b
mov edi, 0x9c
lea eax, [ebp - 0x17c]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x17c], edi
add edi, 0xfffffff8
push edi
lea eax, [ebp - 0xbc]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x17c]
mov dword [ebp - 0xbc], edi
push eax
call ebx
test eax, eax
jne 0x401a0f
lea eax, [ebp - 0xbc]
push eax
call ebx
test eax, eax
jne 0x401ba2
xor eax, eax
jmp 0x401ebd
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x168]
mov dword [esi], eax
mov eax, dword [ebp - 0x174]
mov dword [esi + 4], eax
push ecx
movzx eax, word [ebp - 0x170]
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
push eax
call sub.MSVCRT.dll_strcpy
mov ax, word [ebp - 0xe8]
pop ecx
pop ecx
mov word [esi + 0x94], ax
mov ecx, dword [ebp - 0xe4]
mov ax, word [ebp - 0xe6]
test cl, 1
mov word [esi + 0x96], ax
je 0x401a6a
or dword [esi + 0x12c], 1
test cl, 2
je 0x401a76
or dword [esi + 0x12c], 2
test cl, 0x10
je 0x401a82
or dword [esi + 0x12c], 0x10
test cl, cl
jns 0x401a8d
or dword [esi + 0x12c], 0x20
mov edx, 0x200
test dx, cx
je 0x401a9e
or dword [esi + 0x12c], 0x40
test ch, 4
je 0x401aaa
or byte [esi + 0x12c], 0x80
test cl, 0x40
mov eax, 0x100
je 0x401aba
or dword [esi + 0x12c], eax
test ax, cx
je 0x401ac5
or dword [esi + 0x12c], edx
movzx eax, byte [ebp - 0xe2]
dec eax
je 0x401aed
dec eax
je 0x401ae1
dec eax
jne 0x401af4
mov dword [esi + 0x130], 1
jmp 0x401af4
mov dword [esi + 0x130], 2
jmp 0x401af4
and dword [esi + 0x130], 0
mov ebx, dword [ebp - 4]
push 1
push esi
mov ecx, ebx
call fcn.00402110
push esi
mov ecx, ebx
call fcn.004025bd
mov eax, dword [ebp - 0x16c]
push 3
dec eax
pop edi
je 0x401b29
dec eax
je 0x401b24
dec eax
jne 0x401b30
mov dword [esi + 0xc], 4
jmp 0x401b30
mov dword [esi + 0xc], edi
jmp 0x401b30
mov dword [esi + 0xc], 2
mov eax, dword [esi]
mov dword [esi + 0x98], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xa4], eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0xa8]
push eax
call sub.MSVCRT.dll_strcpy
mov ax, word [esi + 0x94]
pop ecx
pop ecx
mov word [esi + 0x128], ax
mov ax, word [esi + 0x96]
push 1
push esi
mov ecx, ebx
mov word [esi + 0x12a], ax
call fcn.00401f1c
push 1
push esi
mov ecx, ebx
call fcn.00401f77
mov ecx, ebx
push esi
call fcn.00402029
jmp 0x401d8b
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xa8]
mov dword [esi], eax
mov eax, dword [ebp - 0xb4]
mov dword [esi + 4], eax
push ecx
movzx eax, word [ebp - 0xb0]
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
xor ebx, ebx
pop ecx
inc ebx
cmp dword [ebp - 0xac], ebx
push 3
pop edi
jne 0x401c3b
mov ecx, dword [ebp - 4]
and dword [esi + 0x130], 0
push esi
mov dword [esi + 0xc], 2
call fcn.00402275
test eax, eax
je 0x401c0b
mov word [esi + 0x94], bx
mov word [esi + 0x128], bx
jmp 0x401c9b
mov ecx, dword [ebp - 4]
push esi
call fcn.004022a9
test eax, eax
je 0x401c2c
mov word [esi + 0x94], 2
mov word [esi + 0x128], 2
jmp 0x401c9b
mov ecx, dword [ebp - 4]
push esi
call fcn.00402313
test eax, eax
je 0x401c9b
jmp 0x401bf8
cmp dword [ebp - 0xac], 2
jne 0x401c85
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xa8]
push eax
mov ecx, ebx
mov dword [esi + 0xc], edi
call fcn.00402478
push 0
push esi
mov ecx, ebx
mov word [esi + 0x94], ax
mov word [esi + 0x128], ax
call fcn.00402110
push esi
mov ecx, ebx
call fcn.0040262d
push esi
mov ecx, ebx
call fcn.0040254a
xor ebx, ebx
inc ebx
jmp 0x401c9b
cmp dword [ebp - 0xac], edi
jne 0x401c9b
and dword [esi + 0x130], 0
mov dword [esi + 0xc], 4
cmp dword [ebp - 0xac], 0
jne 0x401ccf
and dword [esi + 0xa0], 0
mov dword [esi + 0xc], 2
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], 0xa
mov dword [esi + 0xa4], ebx
push 0x437894
jmp 0x401cf6
mov eax, dword [esi]
mov dword [esi + 0x98], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xa4], eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0xa8]
push eax
call sub.MSVCRT.dll_strcpy
cmp dword [ebp - 0xac], 2
pop ecx
pop ecx
jne 0x401d8b
mov ecx, dword [ebp - 4]
push 1
push esi
call fcn.00401f1c
mov ecx, dword [ebp - 4]
push 1
push esi
call fcn.00401f77
mov ecx, dword [ebp - 4]
jmp 0x401b97
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
and dword [esi + 8], 0
mov dl, ah
push 3
movzx ecx, al
movzx eax, dl
and dword [esi + 0xa0], 0
mov dword [esi + 4], eax
mov dword [esi + 0x9c], eax
pop edi
lea eax, [esi + 0x14]
mov dword [esi], ecx
push eax
lea eax, [esi + 0xa8]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x98], ecx
mov dword [esi + 0xa4], edi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.004024ba
mov word [esi + 0x94], ax
mov word [esi + 0x128], ax
push str.GetNativeSystemInfo
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401db2
lea ecx, [ebp - 0x28]
push ecx
call eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x401dd1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x28]
push 0x24
push eax
lea eax, [ebp - 0xe0]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
movzx eax, word [ebp - 0x28]
push 7
cmp eax, 0xa
pop ebx
push 5
pop edx
push 6
pop ecx
ja case.default.0x401de3
jmp dword [eax*4 + 0x401ec4]
mov dword [esi + 0x134], 1
jmp 0x401e59
mov dword [esi + 0x134], 8
jmp 0x401e59
mov dword [esi + 0x134], 2
jmp 0x401e59
mov dword [esi + 0x134], 9
jmp 0x401e59
mov dword [esi + 0x134], 0xa
jmp 0x401e59
mov dword [esi + 0x134], edi
jmp 0x401e59
mov dword [esi + 0x134], ebx
jmp 0x401e59
mov dword [esi + 0x134], 4
jmp 0x401e59
mov dword [esi + 0x134], edx
jmp 0x401e59
mov dword [esi + 0x134], ecx
jmp 0x401e59
and dword [esi + 0x134], 0
movzx eax, word [ebp - 0xe0]
cmp eax, 0xa
ja case.default.0x401e65
jmp dword [eax*4 + 0x401ef0]
mov dword [esi + 0x10], 1
jmp 0x401eba
mov dword [esi + 0x10], 8
jmp 0x401eba
mov dword [esi + 0x10], 2
jmp 0x401eba
mov dword [esi + 0x10], 9
jmp 0x401eba
mov dword [esi + 0x10], 0xa
jmp 0x401eba
mov dword [esi + 0x10], edi
jmp 0x401eba
mov dword [esi + 0x10], ebx
jmp 0x401eba
mov dword [esi + 0x10], 4
jmp 0x401eba
mov dword [esi + 0x10], edx
jmp 0x401eba
mov dword [esi + 0x10], ecx
jmp 0x401eba
and dword [esi + 0x10], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4