Function at 0x413a14
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 esi, edx
mov ebx, eax
lea edi, [ebp - 0x144]
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x413e52
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [edi], 0x11c
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x413a67
mov dword [edi], 0x114
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x413a67
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x413e59
cmp dword [edi + 0x10], 2
je 0x413a77
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x413e59
test ebx, ebx
je 0x413a85
movzx eax, word [edi + 0x118]
mov word [ebx], ax
test esi, esi
je 0x413a92
movzx eax, byte [edi + 0x11a]
mov byte [esi], al
cmp dword [0x7de43c], 0
je 0x413aad
mov eax, dword [0x7de43c]
mov dword [ebp - 4], eax
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x413e59
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.00402518
push 0x413e64
push 0x413e8c
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00401bd0
test eax, eax
je 0x413adb
lea edx, [ebp - 0x28]
push edx
call eax
jmp 0x413ae4
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [edi + 4], 5
jne 0x413af9
cmp dword [edi + 8], 1
jne 0x413af9
cmp byte [edi + 0x11a], 1
je 0x413b0e
cmp dword [edi + 4], 5
jne 0x413b4d
cmp dword [edi + 8], 2
jne 0x413b4d
cmp byte [edi + 0x11a], 1
jne 0x413b4d
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413b29
sub ax, 5
je 0x413b41
sub ax, 3
je 0x413b35
jmp 0x413e3c
mov dword [ebp - 4], 1
jmp 0x413e3c
mov dword [ebp - 4], 2
jmp 0x413e3c
mov dword [ebp - 4], 4
jmp 0x413e3c
cmp dword [edi + 4], 6
jne 0x413ba1
cmp dword [edi + 8], 0
jne 0x413ba1
cmp byte [edi + 0x11a], 1
jne 0x413ba1
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413b7d
sub ax, 5
je 0x413b95
sub ax, 3
je 0x413b89
jmp 0x413e3c
mov dword [ebp - 4], 8
jmp 0x413e3c
mov dword [ebp - 4], 0x10
jmp 0x413e3c
mov dword [ebp - 4], 0x20
jmp 0x413e3c
cmp dword [edi + 4], 6
jne 0x413bf5
cmp dword [edi + 8], 1
jne 0x413bf5
cmp byte [edi + 0x11a], 1
jne 0x413bf5
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413bd1
sub ax, 5
je 0x413be9
sub ax, 3
je 0x413bdd
jmp 0x413e3c
mov dword [ebp - 4], 0x40
jmp 0x413e3c
mov dword [ebp - 4], 0x80
jmp 0x413e3c
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x413e3c
cmp dword [edi + 4], 6
jne 0x413c49
cmp dword [edi + 8], 2
jne 0x413c49
cmp byte [edi + 0x11a], 1
jne 0x413c49
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413c25
sub ax, 5
je 0x413c3d
sub ax, 3
je 0x413c31
jmp 0x413e3c
mov dword [ebp - 4], 0x200
jmp 0x413e3c
mov dword [ebp - 4], 0x400
jmp 0x413e3c
mov dword [ebp - 4], 0x800
jmp 0x413e3c
cmp dword [edi + 4], 6
jne 0x413c9d
cmp dword [edi + 8], 3
jne 0x413c9d
cmp byte [edi + 0x11a], 1
jne 0x413c9d
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413c79
sub ax, 5
je 0x413c91
sub ax, 3
je 0x413c85
jmp 0x413e3c
mov dword [ebp - 4], 0x200000
jmp 0x413e3c
mov dword [ebp - 4], 0x400000
jmp 0x413e3c
mov dword [ebp - 4], 0x800000
jmp 0x413e3c
cmp dword [edi + 4], 6
jne 0x413cf1
cmp dword [edi + 8], 4
jne 0x413cf1
cmp byte [edi + 0x11a], 1
jne 0x413cf1
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413ccd
sub ax, 5
je 0x413ce5
sub ax, 3
je 0x413cd9
jmp 0x413e3c
mov dword [ebp - 4], 0x1000000
jmp 0x413e3c
mov dword [ebp - 4], 0x2000000
jmp 0x413e3c
mov dword [ebp - 4], 0x4000000
jmp 0x413e3c
cmp dword [edi + 4], 0xa
jne 0x413d45
cmp dword [edi + 8], 0
jne 0x413d45
cmp byte [edi + 0x11a], 1
jne 0x413d45
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413d21
sub ax, 5
je 0x413d39
sub ax, 3
je 0x413d2d
jmp 0x413e3c
mov dword [ebp - 4], 0x1000000
jmp 0x413e3c
mov dword [ebp - 4], 0x2000000
jmp 0x413e3c
mov dword [ebp - 4], 0x4000000
jmp 0x413e3c
cmp dword [edi + 4], 5
jne 0x413d99
cmp dword [edi + 8], 2
jne 0x413d99
cmp byte [edi + 0x11a], 1
je 0x413d99
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413d75
sub ax, 5
je 0x413d8d
sub ax, 3
je 0x413d81
jmp 0x413e3c
mov dword [ebp - 4], 0x1000
jmp 0x413e3c
mov dword [ebp - 4], 0x2000
jmp 0x413e3c
mov dword [ebp - 4], 0x4000
jmp 0x413e3c
cmp dword [edi + 4], 6
jne 0x413dae
cmp dword [edi + 8], 0
jne 0x413dae
cmp byte [edi + 0x11a], 1
jne 0x413dc3
cmp dword [edi + 4], 6
jne 0x413df6
cmp dword [edi + 8], 1
jne 0x413df6
cmp byte [edi + 0x11a], 1
je 0x413df6
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413ddb
sub ax, 5
je 0x413ded
sub ax, 3
je 0x413de4
jmp 0x413e3c
mov dword [ebp - 4], 0x8000
jmp 0x413e3c
mov dword [ebp - 4], 0x10000
jmp 0x413e3c
mov dword [ebp - 4], 0x20000
jmp 0x413e3c
cmp dword [edi + 4], 6
jne 0x413e3c
cmp dword [edi + 8], 2
jne 0x413e3c
cmp byte [edi + 0x11a], 1
je 0x413e3c
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x413e23
sub ax, 5
je 0x413e35
sub ax, 3
je 0x413e2c
jmp 0x413e3c
mov dword [ebp - 4], 0x40000
jmp 0x413e3c
mov dword [ebp - 4], 0x80000
jmp 0x413e3c
mov dword [ebp - 4], 0x100000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413e59
mov eax, dword [ebp - 4]
mov dword [0x7de43c], eax
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret