Function at 0x40fd2c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
xor edx, edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x410270
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x596444], 0
je 0x40fd65
cmp dword [0x5a9154], 0
jne 0x410244
mov byte [0x596444], 1
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40fde6
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.004028a4
mov dword [ebp - 0x1b4], 0x11c
push 0x41027c
push 0x410298
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00401c60
mov ebx, eax
test ebx, ebx
je 0x40fdbe
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x40fe40
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x40fe40
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x40fe40
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.004028a4
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
lea edx, [ebp - 0x1b4]
lea eax, [ebp - 0x98]
mov ecx, 0x94
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov ecx, 0x80
lea eax, [ebp - 0x84]
lea edx, [ebp - 0x1a0]
movzx ebx, byte [eax]
mov word [edx], bx
add edx, 2
inc eax
dec ecx
jne 0x40fe33
mov eax, dword [ebp - 0x1b0]
mov dword [0x5a9138], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x5a913c], eax
mov eax, 0x5a9144
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x5a9148], dl
cmp eax, 2
sete al
mov byte [0x5a914a], al
cmp byte [0x5a9148], 0
je 0x40fe9f
movzx eax, word [ebp - 0x1a8]
mov dword [0x5a9140], eax
jmp 0x40feaa
mov eax, dword [ebp - 0x1a8]
mov dword [0x5a9140], eax
mov byte [0x5a914c], 0
xor eax, eax
mov dword [0x5a9150], eax
cmp byte [0x5a9148], 0
je 0x40ff64
mov eax, dword [0x5a9138]
sub eax, 4
jb 0x40ff4c
je 0x40fed3
jmp 0x40ff45
mov eax, dword [0x5a913c]
sub eax, 0xa
jb 0x40fee7
je 0x40ff05
dec eax
sub eax, 0x50
jb 0x40ff33
jmp 0x40ff3c
cmp dword [0x5a9140], 0x3e8
jbe 0x40fefc
mov byte [0x5a914c], 2
jmp 0x40ff4c
mov byte [0x5a914c], 1
jmp 0x40ff4c
mov eax, dword [0x5a9140]
cmp eax, 0xa8c
jbe 0x40ff1a
mov byte [0x5a914c], 5
jmp 0x40ff4c
cmp eax, 0x7d0
jbe 0x40ff2a
mov byte [0x5a914c], 4
jmp 0x40ff4c
mov byte [0x5a914c], 3
jmp 0x40ff4c
mov byte [0x5a914c], 5
jmp 0x40ff4c
mov byte [0x5a914c], 6
jmp 0x40ff4c
mov byte [0x5a914c], 6
movzx eax, byte [0x5a914c]
mov byte [0x5a9149], al
mov byte [0x5a914b], 0
jmp 0x410157
cmp byte [0x5a914a], 0
je 0x410157
mov eax, dword [0x5a9138]
cmp eax, 0xa
ja case.0x40ff7f.7
jmp dword [eax*4 + 0x40ff86]
mov byte [0x5a914c], 7
jmp 0x4100aa
mov byte [0x5a914c], 8
jmp 0x4100aa
mov eax, dword [0x5a913c]
sub eax, 1
jb 0x40ffd8
je 0x40ffe4
jmp 0x40fff0
mov byte [0x5a914c], 9
jmp 0x4100aa
mov byte [0x5a914c], 0xa
jmp 0x4100aa
cmp byte [ebp - 0x9a], 1
jne 0x410005
mov byte [0x5a914c], 0xa
jmp 0x4100aa
mov byte [0x5a914c], 0xb
jmp 0x4100aa
mov eax, dword [0x5a913c]
sub eax, 1
jb 0x410025
je 0x410040
dec eax
je 0x41005b
dec eax
je 0x410076
jmp 0x410091
cmp byte [ebp - 0x9a], 1
jne 0x410037
mov byte [0x5a914c], 0xc
jmp 0x4100aa
mov byte [0x5a914c], 0xd
jmp 0x4100aa
cmp byte [ebp - 0x9a], 1
jne 0x410052
mov byte [0x5a914c], 0xe
jmp 0x4100aa
mov byte [0x5a914c], 0xf
jmp 0x4100aa
cmp byte [ebp - 0x9a], 1
jne 0x41006d
mov byte [0x5a914c], 0x10
jmp 0x4100aa
mov byte [0x5a914c], 0x11
jmp 0x4100aa
cmp byte [ebp - 0x9a], 1
jne 0x410088
mov byte [0x5a914c], 0x12
jmp 0x4100aa
mov byte [0x5a914c], 0x13
jmp 0x4100aa
mov byte [0x5a914c], 0x15
jmp 0x4100aa
mov byte [0x5a914c], 0x14
jmp 0x4100aa
mov byte [0x5a914c], 0x15
mov byte [0x5a9149], 0
movzx eax, byte [0x5a914c]
mov byte [0x5a914b], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x4100d7
movzx eax, word [ebp - 0xa0]
mov dword [0x5a9150], eax
jmp 0x410113
mov eax, dword [0x5a9144]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 0xe
jl 0x410113
mov eax, dword [0x5a9144]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
sub eax, 0xd
push eax
mov eax, 0x5a9144
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea edx, [eax + 0x1a]
mov ebx, dword [0x5a786c]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x5a9150], eax
push 0x4102ac
push 0x4102d4
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00401c60
mov ebx, eax
test ebx, ebx
je 0x410157
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.004028a4
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x5a914d], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x5a914c]
mov edx, dword [edx*4 + 0x5963c0]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x1dc]
mov eax, 0x5a9154
call sub.rtl120.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
cmp byte [0x5a914a], 0
je 0x410244
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4101ac
mov eax, 0x5a9154
mov edx, 0x4102fc
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4101c6
mov eax, 0x5a9154
mov edx, 0x410310
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4101e0
mov eax, 0x5a9154
mov edx, 0x410334
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x5a914c], 0xc
jae 0x410203
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x410203
mov eax, 0x5a9154
mov edx, 0x410354
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x5a914d], 0
je 0x41021b
mov eax, 0x5a9154
mov edx, 0x41037c
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [0x5a9144], 0
je 0x410244
push dword [0x5a9154]
push 0x410394
push dword [0x5a9144]
mov eax, 0x5a9154
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 4]
mov edx, 0x5a9138
mov ecx, dword [0x40fbcc]
call sub.rtl120.bpl__System__CopyRecord_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410277
lea eax, [ebp - 0x1dc]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret