Function at 0x49dd38
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 0x49e176
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [edi], 0x11c
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x49dd8b
mov dword [edi], 0x114
push edi
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x49dd8b
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x49e17d
cmp dword [edi + 0x10], 2
je 0x49dd9b
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x49e17d
test ebx, ebx
je 0x49dda9
movzx eax, word [edi + 0x118]
mov word [ebx], ax
test esi, esi
je 0x49ddb6
movzx eax, byte [edi + 0x11a]
mov byte [esi], al
cmp dword [0x4c3680], 0
je 0x49ddd1
mov eax, dword [0x4c3680]
mov dword [ebp - 4], eax
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x49e17d
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.00401d28
push 0x49e188
push 0x49e1b0
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00401af8
test eax, eax
je 0x49ddff
lea edx, [ebp - 0x28]
push edx
call eax
jmp 0x49de08
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [edi + 4], 5
jne 0x49de1d
cmp dword [edi + 8], 1
jne 0x49de1d
cmp byte [edi + 0x11a], 1
je 0x49de32
cmp dword [edi + 4], 5
jne 0x49de71
cmp dword [edi + 8], 2
jne 0x49de71
cmp byte [edi + 0x11a], 1
jne 0x49de71
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49de4d
sub ax, 5
je 0x49de65
sub ax, 3
je 0x49de59
jmp 0x49e160
mov dword [ebp - 4], 1
jmp 0x49e160
mov dword [ebp - 4], 2
jmp 0x49e160
mov dword [ebp - 4], 4
jmp 0x49e160
cmp dword [edi + 4], 6
jne 0x49dec5
cmp dword [edi + 8], 0
jne 0x49dec5
cmp byte [edi + 0x11a], 1
jne 0x49dec5
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49dea1
sub ax, 5
je 0x49deb9
sub ax, 3
je 0x49dead
jmp 0x49e160
mov dword [ebp - 4], 8
jmp 0x49e160
mov dword [ebp - 4], 0x10
jmp 0x49e160
mov dword [ebp - 4], 0x20
jmp 0x49e160
cmp dword [edi + 4], 6
jne 0x49df19
cmp dword [edi + 8], 1
jne 0x49df19
cmp byte [edi + 0x11a], 1
jne 0x49df19
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49def5
sub ax, 5
je 0x49df0d
sub ax, 3
je 0x49df01
jmp 0x49e160
mov dword [ebp - 4], 0x40
jmp 0x49e160
mov dword [ebp - 4], 0x80
jmp 0x49e160
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x49e160
cmp dword [edi + 4], 6
jne 0x49df6d
cmp dword [edi + 8], 2
jne 0x49df6d
cmp byte [edi + 0x11a], 1
jne 0x49df6d
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49df49
sub ax, 5
je 0x49df61
sub ax, 3
je 0x49df55
jmp 0x49e160
mov dword [ebp - 4], 0x200
jmp 0x49e160
mov dword [ebp - 4], 0x400
jmp 0x49e160
mov dword [ebp - 4], 0x800
jmp 0x49e160
cmp dword [edi + 4], 6
jne 0x49dfc1
cmp dword [edi + 8], 3
jne 0x49dfc1
cmp byte [edi + 0x11a], 1
jne 0x49dfc1
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49df9d
sub ax, 5
je 0x49dfb5
sub ax, 3
je 0x49dfa9
jmp 0x49e160
mov dword [ebp - 4], 0x200000
jmp 0x49e160
mov dword [ebp - 4], 0x400000
jmp 0x49e160
mov dword [ebp - 4], 0x800000
jmp 0x49e160
cmp dword [edi + 4], 6
jne 0x49e015
cmp dword [edi + 8], 4
jne 0x49e015
cmp byte [edi + 0x11a], 1
jne 0x49e015
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49dff1
sub ax, 5
je 0x49e009
sub ax, 3
je 0x49dffd
jmp 0x49e160
mov dword [ebp - 4], 0x1000000
jmp 0x49e160
mov dword [ebp - 4], 0x2000000
jmp 0x49e160
mov dword [ebp - 4], 0x4000000
jmp 0x49e160
cmp dword [edi + 4], 0xa
jne 0x49e069
cmp dword [edi + 8], 0
jne 0x49e069
cmp byte [edi + 0x11a], 1
jne 0x49e069
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49e045
sub ax, 5
je 0x49e05d
sub ax, 3
je 0x49e051
jmp 0x49e160
mov dword [ebp - 4], 0x1000000
jmp 0x49e160
mov dword [ebp - 4], 0x2000000
jmp 0x49e160
mov dword [ebp - 4], 0x4000000
jmp 0x49e160
cmp dword [edi + 4], 5
jne 0x49e0bd
cmp dword [edi + 8], 2
jne 0x49e0bd
cmp byte [edi + 0x11a], 1
je 0x49e0bd
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49e099
sub ax, 5
je 0x49e0b1
sub ax, 3
je 0x49e0a5
jmp 0x49e160
mov dword [ebp - 4], 0x1000
jmp 0x49e160
mov dword [ebp - 4], 0x2000
jmp 0x49e160
mov dword [ebp - 4], 0x4000
jmp 0x49e160
cmp dword [edi + 4], 6
jne 0x49e0d2
cmp dword [edi + 8], 0
jne 0x49e0d2
cmp byte [edi + 0x11a], 1
jne 0x49e0e7
cmp dword [edi + 4], 6
jne 0x49e11a
cmp dword [edi + 8], 1
jne 0x49e11a
cmp byte [edi + 0x11a], 1
je 0x49e11a
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49e0ff
sub ax, 5
je 0x49e111
sub ax, 3
je 0x49e108
jmp 0x49e160
mov dword [ebp - 4], 0x8000
jmp 0x49e160
mov dword [ebp - 4], 0x10000
jmp 0x49e160
mov dword [ebp - 4], 0x20000
jmp 0x49e160
cmp dword [edi + 4], 6
jne 0x49e160
cmp dword [edi + 8], 2
jne 0x49e160
cmp byte [edi + 0x11a], 1
je 0x49e160
movzx eax, word [ebp - 0x28]
sub ax, 1
jb 0x49e147
sub ax, 5
je 0x49e159
sub ax, 3
je 0x49e150
jmp 0x49e160
mov dword [ebp - 4], 0x40000
jmp 0x49e160
mov dword [ebp - 4], 0x80000
jmp 0x49e160
mov dword [ebp - 4], 0x100000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e17d
mov eax, dword [ebp - 4]
mov dword [0x4c3680], eax
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret