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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], eax
mov eax, 0x4c45d0
call fcn.004afb5c
push 0x9c
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.004af6cc
add esp, 0xc
mov dword [ebp - 0x128], 0x9c
lea ecx, [ebp - 0x128]
push ecx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x416765
mov word [ebp - 0x6c], 8
lea eax, [ebp - 4]
call fcn.00401790
push eax
inc dword [ebp - 0x60]
call sub.KERNEL32.DLL_GetLastError
pop edx
call fcn.00412e88
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 8]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x60]
mov eax, str.Get_OSVersion_failed:
pop edx
call fcn.004ba340
lea edx, [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x80]
call fcn.004161a0
dec dword [ebp - 0x60]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x60]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
xor eax, eax
mov edx, dword [ebp - 0x7c]
mov dword fs:[0], edx
jmp 0x416c93
mov eax, dword [ebp - 0x80]
call fcn.00416c98
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 0x89], dl
mov word [ebp - 0x6c], 0x14
lea eax, [ebp - 0xc]
call fcn.00401790
inc dword [ebp - 0x60]
mov word [ebp - 0x6c], 0x20
cmp dword [ebp - 0x118], 2
jne 0x416a75
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push str.WNT__d._d
push dword [ebp - 0x84]
call fcn.004b9ec4
add esp, 0x10
mov word [ebp - 0x6c], 0x2c
lea eax, [ebp - 0x10]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x60]
mov eax, str.OSTerm_prefix:
mov edx, dword [ebp - 0x84]
call fcn.004ba340
lea edx, [ebp - 0x10]
mov edx, dword [edx]
mov eax, dword [ebp - 0x80]
call fcn.004161a0
dec dword [ebp - 0x60]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b9d00
cmp byte [ebp - 0x8e], 3
jne 0x4168e4
cmp byte [ebp - 0x89], 0
je 0x4168a2
lea ecx, [ebp - 0x14c]
push ecx
call sub.KERNEL32.DLL_GetSystemInfo
cmp word [ebp - 0x14c], 6
je 0x416838
cmp word [ebp - 0x14c], 0
jne 0x41686e
mov word [ebp - 0x6c], 0x38
mov edx, 0x4c127d
lea eax, [ebp - 0x14]
call fcn.004b9ba0
inc dword [ebp - 0x60]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x84]
call fcn.004b9d44
dec dword [ebp - 0x60]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b9d00
jmp 0x4168a2
mov word [ebp - 0x6c], 0x44
mov edx, 0x4c127f
lea eax, [ebp - 0x18]
call fcn.004b9ba0
inc dword [ebp - 0x60]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x84]
call fcn.004b9d44
dec dword [ebp - 0x60]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0x6c], 0x50
lea eax, [ebp - 0x1c]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x60]
mov eax, str.Server_OSTerm:
mov edx, dword [ebp - 0x84]
call fcn.004ba340
lea edx, [ebp - 0x1c]
mov edx, dword [edx]
mov eax, dword [ebp - 0x80]
call fcn.004161a0
dec dword [ebp - 0x60]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004b9d00
jmp 0x416957
test byte [ebp - 0x8f], 2
je 0x416923
mov word [ebp - 0x6c], 0x5c
mov edx, 0x4c1291
lea eax, [ebp - 0x20]
call fcn.004b9ba0
inc dword [ebp - 0x60]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x84]
call fcn.004b9d44
dec dword [ebp - 0x60]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004b9d00
jmp 0x416957
mov word [ebp - 0x6c], 0x68
mov edx, 0x4c1293
lea eax, [ebp - 0x24]
call fcn.004b9ba0
inc dword [ebp - 0x60]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x84]
call fcn.004b9d44
dec dword [ebp - 0x60]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004b9d00
cmp dword [ebp - 0x124], 6
jne 0x416a2d
cmp byte [ebp - 0x89], 0
je 0x4169ce
mov word [ebp - 0x6c], 0x74
lea eax, [ebp - 0x2c]
call fcn.00401790
push eax
inc dword [ebp - 0x60]
mov edx, 0x4c1295
lea eax, [ebp - 0x28]
call fcn.004b9ba0
inc dword [ebp - 0x60]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x84]
pop ecx
call fcn.004b9d58
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x84]
call fcn.004b9d30
dec dword [ebp - 0x60]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x60]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004b9d00
jmp 0x416a2d
mov word [ebp - 0x6c], 0x80
lea eax, [ebp - 0x34]
call fcn.00401790
push eax
inc dword [ebp - 0x60]
mov edx, 0x4c1299
lea eax, [ebp - 0x30]
call fcn.004b9ba0
inc dword [ebp - 0x60]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x84]
pop ecx
call fcn.004b9d58
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x84]
call fcn.004b9d30
dec dword [ebp - 0x60]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x60]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004b9d00
push 0x57
call fcn.00480eb4
test eax, eax
je 0x416b73
mov word [ebp - 0x6c], 0x8c
mov edx, str._MCE
lea eax, [ebp - 0x38]
call fcn.004b9ba0
inc dword [ebp - 0x60]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x84]
call fcn.004b9d44
dec dword [ebp - 0x60]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004b9d00
jmp 0x416b73
cmp dword [ebp - 0x118], 1
jne 0x416aa2
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push str.WIN__d._d
push dword [ebp - 0x84]
call fcn.004b9ec4
add esp, 0x10
jmp 0x416b73
mov word [ebp - 0x6c], 0x98
lea eax, [ebp - 0x3c]
call fcn.00401790
mov edx, eax
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x118]
call fcn.00412e88
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x40]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x60]
mov eax, str.Unknown_VER_PLATFORM:
pop edx
call fcn.004ba340
lea edx, [ebp - 0x40]
mov edx, dword [edx]
mov eax, dword [ebp - 0x80]
call fcn.004161a0
dec dword [ebp - 0x60]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x60]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004b9d00
push 0
mov word [ebp - 0x6c], 0xa4
lea eax, [ebp - 0x44]
call fcn.00401790
mov edx, eax
inc dword [ebp - 0x60]
mov ecx, dword [0x4db5ac]
mov eax, dword [ecx]
call fcn.00442158
lea eax, [ebp - 0x44]
call fcn.00408c78
push eax
push str.Unknown_system_platform...
push 0
call sub.USER32.DLL_MessageBoxA
dec dword [ebp - 0x60]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004b9d00
xor eax, eax
push eax
dec dword [ebp - 0x60]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b9d00
pop eax
mov edx, dword [ebp - 0x7c]
mov dword fs:[0], edx
jmp 0x416c93
mov word [ebp - 0x6c], 0xb0
lea eax, [ebp - 0x48]
call fcn.00401790
push eax
inc dword [ebp - 0x60]
call sub.KERNEL32.DLL_GetSystemDefaultLangID
movzx eax, ax
mov edx, 4
pop ecx
call fcn.00476750
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x88]
call fcn.004b9d30
dec dword [ebp - 0x60]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0x6c], 0xbc
lea eax, [ebp - 0x4c]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x60]
mov eax, str.OS:
mov edx, dword [ebp - 0x84]
call fcn.004ba340
lea ecx, [ebp - 0x4c]
push ecx
lea eax, [ebp - 0x54]
call fcn.00401790
push eax
inc dword [ebp - 0x60]
mov edx, str.__LangCode:
lea eax, [ebp - 0x50]
call fcn.004b9ba0
inc dword [ebp - 0x60]
lea edx, [ebp - 0x50]
pop ecx
pop eax
call fcn.004b9d58
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x58]
call fcn.00401790
mov ecx, eax
inc dword [ebp - 0x60]
mov edx, dword [ebp - 0x88]
pop eax
call fcn.004b9d58
lea edx, [ebp - 0x58]
mov edx, dword [edx]
mov eax, dword [ebp - 0x80]
call fcn.004161a0
dec dword [ebp - 0x60]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x60]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x60]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004b9d00
dec dword [ebp - 0x60]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004b9d00
mov al, 1
push eax
dec dword [ebp - 0x60]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b9d00
pop eax
mov edx, dword [ebp - 0x7c]
mov dword fs:[0], edx
jmp 0x416c93
mov esp, ebp
pop ebp
ret