Function at 0x415734
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, 0x4c26a0
call fcn.004ad4bc
push 0x9c
push 0
lea edx, [ebp - 0x120]
push edx
call fcn.004ad0a8
add esp, 0xc
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], 0x9c
push ecx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x4157f3
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.00409ca8
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.004b7ca0
lea edx, [ebp - 8]
mov eax, edi
mov edx, dword [edx]
call fcn.00415258
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b7660
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b7660
xor eax, eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x415cc6
mov eax, edi
call fcn.00415cd0
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 0x415ac4
mov eax, dword [ebp - 0x118]
push eax
mov edx, dword [ebp - 0x11c]
push edx
push str.WNT__d._d
push ebx
call fcn.004b7824
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.004b7ca0
lea edx, [ebp - 0x10]
mov eax, edi
mov edx, dword [edx]
call fcn.00415258
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b7660
cmp byte [ebp - 0x86], 3
jne 0x415953
cmp byte [ebp - 0x81], 0
je 0x415918
lea ecx, [ebp - 0x144]
push ecx
call sub.KERNEL32.DLL_GetSystemInfo
mov ax, word [ebp - 0x144]
cmp ax, 6
je 0x4158b6
test ax, ax
jne 0x4158e8
mov word [esi + 0x10], 0x38
mov edx, 0x4beb3a
lea eax, [ebp - 0x14]
call fcn.004b7500
inc dword [esi + 0x1c]
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004b76a4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b7660
jmp 0x415918
mov word [esi + 0x10], 0x44
mov edx, 0x4beb3c
lea eax, [ebp - 0x18]
call fcn.004b7500
inc dword [esi + 0x1c]
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004b76a4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b7660
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.004b7ca0
lea edx, [ebp - 0x1c]
mov eax, edi
mov edx, dword [edx]
call fcn.00415258
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004b7660
jmp 0x4159be
test byte [ebp - 0x87], 2
je 0x41598e
mov word [esi + 0x10], 0x5c
mov edx, 0x4beb4e
lea eax, [ebp - 0x20]
call fcn.004b7500
inc dword [esi + 0x1c]
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.004b76a4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004b7660
jmp 0x4159be
mov word [esi + 0x10], 0x68
mov edx, 0x4beb50
lea eax, [ebp - 0x24]
call fcn.004b7500
inc dword [esi + 0x1c]
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004b76a4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004b7660
cmp dword [ebp - 0x11c], 6
jne 0x415a80
cmp byte [ebp - 0x81], 0
je 0x415a2b
mov word [esi + 0x10], 0x74
mov edx, 0x4beb52
lea eax, [ebp - 0x28]
call fcn.004b7500
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.004b76b8
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.004b7690
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004b7660
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004b7660
jmp 0x415a80
mov word [esi + 0x10], 0x80
mov edx, 0x4beb56
lea eax, [ebp - 0x30]
call fcn.004b7500
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.004b76b8
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.004b7690
dec dword [esi + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004b7660
dec dword [esi + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004b7660
push 0x57
call fcn.004ab1c4
test eax, eax
je 0x415bbc
mov word [esi + 0x10], 0x8c
mov edx, str._MCE
lea eax, [ebp - 0x38]
call fcn.004b7500
inc dword [esi + 0x1c]
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.004b76a4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004b7660
jmp 0x415bbc
cmp dword [ebp - 0x110], 1
jne 0x415aee
mov ecx, dword [ebp - 0x118]
push ecx
mov eax, dword [ebp - 0x11c]
push eax
push str.WIN__d._d
push ebx
call fcn.004b7824
add esp, 0x10
jmp 0x415bbc
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.00409ca8
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.004b7ca0
lea edx, [ebp - 0x40]
mov eax, edi
mov edx, dword [edx]
call fcn.00415258
dec dword [esi + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004b7660
dec dword [esi + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004b7660
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 [0x4da0ec]
mov eax, dword [eax]
call fcn.00445f38
cmp dword [ebp - 0x44], 0
je 0x415b78
mov edx, dword [ebp - 0x44]
jmp 0x415b7d
mov edx, 0x4beb9b
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.004b7660
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 0xc]
dec dword [esi + 0x1c]
call fcn.004b7660
pop eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x415cc6
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.0047a530
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x80]
call fcn.004b7690
dec dword [esi + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004b7660
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.004b7ca0
lea eax, [ebp - 0x4c]
push eax
mov edx, str.__LangCode:
lea eax, [ebp - 0x50]
call fcn.004b7500
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.004b76b8
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.004b76b8
lea edx, [ebp - 0x58]
mov eax, edi
mov edx, dword [edx]
call fcn.00415258
dec dword [esi + 0x1c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004b7660
dec dword [esi + 0x1c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004b7660
dec dword [esi + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004b7660
dec dword [esi + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004b7660
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0xc]
dec dword [esi + 0x1c]
call fcn.004b7660
pop eax
mov edx, dword [esi]
mov dword fs:[0], edx
jmp 0x415cc6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret