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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov dword [ebp - 0x80], ecx
mov ebx, edx
mov edi, eax
lea esi, [ebp - 0x7c]
mov eax, 0x4bf5dc
call fcn.004aad94
push 0x9c
push 0
lea edx, [ebp - 0x120]
push edx
call fcn.004aa980
add esp, 0xc
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], 0x9c
push ecx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x41414f
mov word [esi + 0x10], 8
call sub.KERNEL32.DLL_GetLastError
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 4]
inc dword [esi + 0x1c]
call fcn.00410c10
lea edx, [ebp - 4]
xor eax, eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
inc dword [esi + 0x1c]
mov eax, str.Get_OSVersion_failed:
call fcn.004b5578
lea edx, [ebp - 8]
mov eax, edi
mov edx, dword [edx]
call fcn.00413bb4
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b4f38
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b4f38
xor eax, eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x414622
mov eax, edi
call fcn.0041462c
test eax, eax
setne dl
and edx, 1
xor ecx, ecx
mov byte [ebp - 0x81], dl
mov word [esi + 0x10], 0x14
mov dword [ebp - 0xc], ecx
inc dword [esi + 0x1c]
mov word [esi + 0x10], 0x20
cmp dword [ebp - 0x110], 2
jne 0x414420
mov eax, dword [ebp - 0x118]
push eax
mov edx, dword [ebp - 0x11c]
push edx
push str.WNT__d._d
push ebx
call fcn.004b50fc
mov word [esi + 0x10], 0x2c
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
inc dword [esi + 0x1c]
mov eax, str.OSTerm_prefix:
mov edx, ebx
call fcn.004b5578
lea edx, [ebp - 0x10]
mov eax, edi
mov edx, dword [edx]
call fcn.00413bb4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b4f38
cmp byte [ebp - 0x86], 3
jne 0x4142af
cmp byte [ebp - 0x81], 0
je 0x414274
lea ecx, [ebp - 0x144]
push ecx
call sub.KERNEL32.DLL_GetSystemInfo
mov ax, word [ebp - 0x144]
cmp ax, 6
je 0x414212
test ax, ax
jne 0x414244
mov word [esi + 0x10], 0x38
mov edx, 0x4bc2b3
lea eax, [ebp - 0x14]
call fcn.004b4dd8
inc dword [esi + 0x1c]
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004b4f7c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b4f38
jmp 0x414274
mov word [esi + 0x10], 0x44
mov edx, 0x4bc2b5
lea eax, [ebp - 0x18]
call fcn.004b4dd8
inc dword [esi + 0x1c]
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004b4f7c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b4f38
mov word [esi + 0x10], 0x50
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
inc dword [esi + 0x1c]
mov eax, str.Server_OSTerm:
mov edx, ebx
call fcn.004b5578
lea edx, [ebp - 0x1c]
mov eax, edi
mov edx, dword [edx]
call fcn.00413bb4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004b4f38
jmp 0x41431a
test byte [ebp - 0x87], 2
je 0x4142ea
mov word [esi + 0x10], 0x5c
mov edx, 0x4bc2c7
lea eax, [ebp - 0x20]
call fcn.004b4dd8
inc dword [esi + 0x1c]
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.004b4f7c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004b4f38
jmp 0x41431a
mov word [esi + 0x10], 0x68
mov edx, 0x4bc2c9
lea eax, [ebp - 0x24]
call fcn.004b4dd8
inc dword [esi + 0x1c]
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004b4f7c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004b4f38
cmp dword [ebp - 0x11c], 6
jne 0x4143dc
cmp byte [ebp - 0x81], 0
je 0x414387
mov word [esi + 0x10], 0x74
mov edx, 0x4bc2cb
lea eax, [ebp - 0x28]
call fcn.004b4dd8
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, ebx
inc dword [esi + 0x1c]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.004b4f90
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.004b4f68
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004b4f38
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004b4f38
jmp 0x4143dc
mov word [esi + 0x10], 0x80
mov edx, 0x4bc2cf
lea eax, [ebp - 0x30]
call fcn.004b4dd8
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, ebx
inc dword [esi + 0x1c]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x34]
call fcn.004b4f90
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.004b4f68
dec dword [esi + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004b4f38
dec dword [esi + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004b4f38
push 0x57
call fcn.0047e18c
test eax, eax
je 0x414518
mov word [esi + 0x10], 0x8c
mov edx, str._MCE
lea eax, [ebp - 0x38]
call fcn.004b4dd8
inc dword [esi + 0x1c]
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.004b4f7c
dec dword [esi + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004b4f38
jmp 0x414518
cmp dword [ebp - 0x110], 1
jne 0x41444a
mov ecx, dword [ebp - 0x118]
push ecx
mov eax, dword [ebp - 0x11c]
push eax
push str.WIN__d._d
push ebx
call fcn.004b50fc
add esp, 0x10
jmp 0x414518
mov word [esi + 0x10], 0x98
xor edx, edx
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x3c]
inc dword [esi + 0x1c]
mov eax, dword [ebp - 0x110]
call fcn.00410c10
lea edx, [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x40]
inc dword [esi + 0x1c]
mov eax, str.Unknown_VER_PLATFORM:
call fcn.004b5578
lea edx, [ebp - 0x40]
mov eax, edi
mov edx, dword [edx]
call fcn.00413bb4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004b4f38
dec dword [esi + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004b4f38
push 0
xor ecx, ecx
mov word [esi + 0x10], 0xa4
mov dword [ebp - 0x44], ecx
lea edx, [ebp - 0x44]
inc dword [esi + 0x1c]
mov eax, dword [0x4d72e4]
mov eax, dword [eax]
call fcn.0043f430
cmp dword [ebp - 0x44], 0
je 0x4144d4
mov edx, dword [ebp - 0x44]
jmp 0x4144d9
mov edx, 0x4bc314
push edx
push str.Unknown_system_platform...
push 0
call sub.USER32.DLL_MessageBoxA
dec dword [esi + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004b4f38
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 0xc]
dec dword [esi + 0x1c]
call fcn.004b4f38
pop eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x414622
mov word [esi + 0x10], 0xb0
call sub.KERNEL32.DLL_GetSystemDefaultLangID
movzx eax, ax
xor edx, edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], edx
mov edx, 4
inc dword [esi + 0x1c]
call fcn.00473a28
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x80]
call fcn.004b4f68
dec dword [esi + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004b4f38
mov word [esi + 0x10], 0xbc
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x4c]
inc dword [esi + 0x1c]
mov eax, str.OS:
mov edx, ebx
call fcn.004b5578
lea eax, [ebp - 0x4c]
push eax
mov edx, str.__LangCode:
lea eax, [ebp - 0x50]
call fcn.004b4dd8
inc dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x54]
inc dword [esi + 0x1c]
lea edx, [ebp - 0x50]
pop eax
call fcn.004b4f90
lea eax, [ebp - 0x54]
xor edx, edx
mov dword [ebp - 0x58], edx
lea ecx, [ebp - 0x58]
inc dword [esi + 0x1c]
mov edx, dword [ebp - 0x80]
call fcn.004b4f90
lea edx, [ebp - 0x58]
mov eax, edi
mov edx, dword [edx]
call fcn.00413bb4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004b4f38
dec dword [esi + 0x1c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004b4f38
dec dword [esi + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004b4f38
dec dword [esi + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004b4f38
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0xc]
dec dword [esi + 0x1c]
call fcn.004b4f38
pop eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x414622
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret