Function at 0x40b320
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 0x40b864
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x477b0d], 0
je 0x40b359
cmp dword [0x47e29c], 0
jne 0x40b838
mov byte [0x477b0d], 1
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40b3da
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.00403318
mov dword [ebp - 0x1b4], 0x11c
push 0x40b870
push 0x40b88c
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00402b90
mov ebx, eax
test ebx, ebx
je 0x40b3b2
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x40b434
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x40b434
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x40b434
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.00403318
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.rtl250.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 0x40b427
mov eax, dword [ebp - 0x1b0]
mov dword [0x47e280], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x47e284], eax
mov eax, 0x47e28c
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call sub.rtl250.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x47e290], dl
cmp eax, 2
sete al
mov byte [0x47e292], al
cmp byte [0x47e290], 0
je 0x40b493
movzx eax, word [ebp - 0x1a8]
mov dword [0x47e288], eax
jmp 0x40b49e
mov eax, dword [ebp - 0x1a8]
mov dword [0x47e288], eax
mov byte [0x47e294], 0
xor eax, eax
mov dword [0x47e298], eax
cmp byte [0x47e290], 0
je 0x40b558
mov eax, dword [0x47e280]
sub eax, 4
jb 0x40b540
je 0x40b4c7
jmp 0x40b539
mov eax, dword [0x47e284]
sub eax, 0xa
jb 0x40b4db
je 0x40b4f9
dec eax
sub eax, 0x50
jb 0x40b527
jmp 0x40b530
cmp dword [0x47e288], 0x3e8
jbe 0x40b4f0
mov byte [0x47e294], 2
jmp 0x40b540
mov byte [0x47e294], 1
jmp 0x40b540
mov eax, dword [0x47e288]
cmp eax, 0xa8c
jbe 0x40b50e
mov byte [0x47e294], 5
jmp 0x40b540
cmp eax, 0x7d0
jbe 0x40b51e
mov byte [0x47e294], 4
jmp 0x40b540
mov byte [0x47e294], 3
jmp 0x40b540
mov byte [0x47e294], 5
jmp 0x40b540
mov byte [0x47e294], 6
jmp 0x40b540
mov byte [0x47e294], 6
movzx eax, byte [0x47e294]
mov byte [0x47e291], al
mov byte [0x47e293], 0
jmp 0x40b74b
cmp byte [0x47e292], 0
je 0x40b74b
mov eax, dword [0x47e280]
cmp eax, 0xa
ja case.0x40b573.7
jmp dword [eax*4 + 0x40b57a]
mov byte [0x47e294], 7
jmp 0x40b69e
mov byte [0x47e294], 8
jmp 0x40b69e
mov eax, dword [0x47e284]
sub eax, 1
jb 0x40b5cc
je 0x40b5d8
jmp 0x40b5e4
mov byte [0x47e294], 9
jmp 0x40b69e
mov byte [0x47e294], 0xa
jmp 0x40b69e
cmp byte [ebp - 0x9a], 1
jne 0x40b5f9
mov byte [0x47e294], 0xa
jmp 0x40b69e
mov byte [0x47e294], 0xb
jmp 0x40b69e
mov eax, dword [0x47e284]
sub eax, 1
jb 0x40b619
je 0x40b634
dec eax
je 0x40b64f
dec eax
je 0x40b66a
jmp 0x40b685
cmp byte [ebp - 0x9a], 1
jne 0x40b62b
mov byte [0x47e294], 0xc
jmp 0x40b69e
mov byte [0x47e294], 0xd
jmp 0x40b69e
cmp byte [ebp - 0x9a], 1
jne 0x40b646
mov byte [0x47e294], 0xe
jmp 0x40b69e
mov byte [0x47e294], 0xf
jmp 0x40b69e
cmp byte [ebp - 0x9a], 1
jne 0x40b661
mov byte [0x47e294], 0x10
jmp 0x40b69e
mov byte [0x47e294], 0x11
jmp 0x40b69e
cmp byte [ebp - 0x9a], 1
jne 0x40b67c
mov byte [0x47e294], 0x12
jmp 0x40b69e
mov byte [0x47e294], 0x13
jmp 0x40b69e
mov byte [0x47e294], 0x15
jmp 0x40b69e
mov byte [0x47e294], 0x14
jmp 0x40b69e
mov byte [0x47e294], 0x15
mov byte [0x47e291], 0
movzx eax, byte [0x47e294]
mov byte [0x47e293], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x40b6cb
movzx eax, word [ebp - 0xa0]
mov dword [0x47e298], eax
jmp 0x40b707
mov eax, dword [0x47e28c]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 0xe
jl 0x40b707
mov eax, dword [0x47e28c]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
sub eax, 0xd
push eax
mov eax, 0x47e28c
call sub.rtl250.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea edx, [eax + 0x1a]
mov ebx, dword [0x47b118]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x47e298], eax
push 0x40b8a0
push 0x40b8c8
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00402b90
mov ebx, eax
test ebx, ebx
je 0x40b74b
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.00403318
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x47e295], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x47e294]
mov edx, dword [edx*4 + 0x477a8c]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x1dc]
mov eax, 0x47e29c
call sub.rtl250.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
cmp byte [0x47e292], 0
je 0x40b838
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40b7a0
mov eax, 0x47e29c
mov edx, 0x40b8f0
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40b7ba
mov eax, 0x47e29c
mov edx, 0x40b904
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40b7d4
mov eax, 0x47e29c
mov edx, 0x40b928
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x47e294], 0xc
jae 0x40b7f7
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40b7f7
mov eax, 0x47e29c
mov edx, 0x40b948
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x47e295], 0
je 0x40b80f
mov eax, 0x47e29c
mov edx, 0x40b970
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [0x47e28c], 0
je 0x40b838
push dword [0x47e29c]
push 0x40b988
push dword [0x47e28c]
mov eax, 0x47e29c
mov edx, 3
call sub.rtl250.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 4]
mov edx, 0x47e280
mov ecx, dword [0x40afb4]
call sub.rtl250.bpl__System__CopyRecord_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b86b
lea eax, [ebp - 0x1dc]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret