Function at 0x5f13d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x5f13d8
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5f1d36
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x30], 0
jne 0x5f143a
mov dl, 8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5f1431
lea ecx, [ebp - 0x14]
mov edx, 8
mov eax, ebx
call sub.rtl120.bpl__Sysutils_IntToHex_qqrii
lea eax, [ebp - 0x14]
mov edx, 0x5f1d50
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov ecx, dword [ebp - 0x14]
mov dl, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
call fcn.005ec1e4
mov byte [ebx + 0x30], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_EnterCriticalSection
xor ecx, ecx
push ebp
push 0x5f1ce2
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5f14a4
push 0
mov eax, dword [0x806e64]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x18]
call sub.rtl120.bpl__Sysutils_StrPas_qqrpxc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call sub.rtl120.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x5f1d70
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0x1c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x8006f4], 0
jne 0x5f14c9
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xc0], 0
je 0x5f14c9
mov eax, dword [0x80688c]
mov eax, dword [eax]
call eax
mov byte [0x8006f4], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x5f14fc
mov eax, dword [ebp - 0xc]
call fcn.005ed89c
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], ebx
test ebx, ebx
jne 0x5f14fc
mov ecx, 0x5f1dc4
mov dl, 1
mov eax, dword [0x5dac00]
call sub.rtl120.bpl__Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl120.bpl__System__RaiseExcept_qqrv
xor ecx, ecx
push ebp
push 0x5f1c96
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
cmp word [eax + 0xba], 0
je 0x5f1529
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x806468]
cmp dword [eax], 0x1010000f
jb 0x5f1596
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x94]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x80689c]
mov eax, dword [eax]
call eax
add esp, 8
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5f1596
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x94]
mov eax, dword [0x5da458]
call sub.rtl120.bpl__Typinfo_GetEnumName_qqrp17Typinfo_TTypeInfoi
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x5f1e0c
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0x20]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc4]
test eax, eax
je 0x5f15b5
test byte [eax + 0x45], 1
je 0x5f15b5
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.005f1170
jmp 0x5f1634
push 0x5edb80
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806b14]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806f3c]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.005f3a6c
test al, al
jne 0x5f1634
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5f1626
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jne 0x5f1626
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.005f06bc
jmp 0x5f1634
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
call fcn.005f04a4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.005f3a64
test al, al
jne 0x5f1652
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.005f3a74
test al, al
je 0x5f165c
mov eax, dword [ebp - 0xc]
call fcn.005efdfc
jmp 0x5f169d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5f168f
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
jne 0x5f168f
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.005f0044
jmp 0x5f169d
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.005efbe8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.005f3a74
test al, al
jne 0x5f16fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5f16e8
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x5c], 0
jne 0x5f16e8
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x64], 0
jne 0x5f16e8
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.005efaa4
jmp 0x5f16fc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x64]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0xc]
call fcn.005ef2e4
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0xc]
call fcn.005eed44
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.005ef0ac
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5f174b
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0
jne 0x5f174b
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.005f0da0
jmp 0x5f1759
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
call fcn.005f0abc
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8c]
cmp al, 1
jne 0x5f1796
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.005d21b8
test eax, eax
jne 0x5f1806
push 0x5f1e44
mov cl, 1
mov edx, dword [0x5dac00]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x5f1806
test al, al
jbe 0x5f1806
and eax, 0x7f
mov eax, dword [eax*4 + 0x8006bc]
push eax
mov eax, dword [0x806ca0]
mov eax, dword [eax]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x5f17ca
push 0x5f1e94
mov cl, 1
mov edx, dword [0x5dac00]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
push 0
push 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806ba4]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x5f17fb
push 0x5f1ee4
mov cl, 1
mov edx, dword [0x5dac00]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
mov eax, dword [0x806a5c]
mov eax, dword [eax]
call eax
pop ecx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x84]
or ebx, 0x4000
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x41], 5
jne 0x5f1825
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x41], 0
mov eax, dword [0x806468]
cmp dword [eax], 0x1010000f
jb 0x5f18aa
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
cmp al, byte [edx + 0x42]
ja 0x5f194b
and eax, 0x7f
mov eax, dword [eax*4 + 0x8006d0]
push 0
push eax
push 0x7b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806ba4]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x42]
mov eax, dword [eax*4 + 0x8006d0]
push 0
push eax
push 0x7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806ba4]
mov eax, dword [eax]
call eax
add esp, 0x10
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
jmp 0x5f194b
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x42]
cmp al, dl
ja 0x5f194b
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
test al, al
jbe 0x5f1910
cmp al, 1
jne 0x5f18e8
or ebx, 0x2000000
jmp 0x5f1910
cmp al, 2
jne 0x5f18fa
or ebx, 0x2000000
or ebx, 0x4000000
jmp 0x5f1910
cmp al, 3
jne 0x5f1910
or ebx, 0x2000000
or ebx, 0x4000000
or ebx, 0x10000000
cmp dl, 5
jae 0x5f194b
test dl, dl
jne 0x5f192d
or ebx, 0x4000000
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x5f194b
cmp dl, 1
jne 0x5f1940
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x5f194b
cmp dl, 2
jne 0x5f194b
or ebx, 0x8000000
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5f19ab
push 0x5f1f34
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x41]
mov eax, dword [0x5d9ee8]
call sub.rtl120.bpl__Typinfo_GetEnumName_qqrp17Typinfo_TTypeInfoi
push dword [ebp - 0x3c]
push 0x5f1f60
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x42]
mov eax, dword [0x5d9ee8]
call sub.rtl120.bpl__Typinfo_GetEnumName_qqrp17Typinfo_TTypeInfoi
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 4
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov ecx, dword [ebp - 0x38]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x34]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0xb0]
mov eax, dword [ebp - 0xc]
call fcn.005f324c
mov eax, dword [0x806468]
cmp dword [eax], 0x1010000f
ja 0x5f19d7
mov eax, ebx
and eax, 0x20
cmp eax, 0x20
jne 0x5f19d7
and ebx, 0xffffffdf
push 0
push ebx
push 0x20
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806ba4]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x88], 0
je 0x5f1a48
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x88]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x44]
call sub.rtl120.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806b70]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x5f1a5e
push 0x5f1f90
mov cl, 1
mov edx, dword [0x5dac00]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x5f1a5e
mov ecx, 0x5f1fd0
mov dl, 1
mov eax, dword [0x5dac00]
call sub.rtl120.bpl__Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl120.bpl__System__RaiseExcept_qqrv
mov eax, dword [ebp - 0xc]
call fcn.005f2eb4
mov byte [ebp - 0xd], al
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x98]
push eax
push 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806ba4]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 0x10
jne 0x5f1b02
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806c28]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x5f1ac2
push 0x5f2000
mov cl, 1
mov edx, dword [0x5dac00]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push 0x5ee058
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806ee4]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
cmp eax, 0x5000
je 0x5f1b02
push 0
push eax
push 0x2a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806ba4]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 2
je 0x5f1bd5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
jbe 0x5f1b2d
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x8070f4]
mov eax, dword [eax]
call eax
add esp, 8
push 0x5ee2c8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806f64]
mov eax, dword [eax]
call eax
add esp, 8
push 0x5ee4b8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806f14]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jle 0x5f1bb8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 0xc]
add eax, 0xa4
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x806660]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x5f1bb8
push 0x5f2044
mov cl, 1
mov edx, dword [0x5dac00]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5f1bd5
mov ecx, 0x5f209c
mov dl, 8
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x34]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x5f1c8c
mov esi, 1
lea eax, [ebp - 4]
xor edx, edx
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor edi, edi
test esi, ebx
je 0x5f1c23
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
mov edx, 8
mov eax, esi
call sub.rtl120.bpl__Sysutils_IntToHex_qqrii
push dword [ebp - 0x48]
push 0x5f20dc
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
add esi, esi
inc edi
cmp edi, 0x1f
jne 0x5f1bf8
push 0x5f20f0
lea ecx, [ebp - 0x50]
mov edx, 8
mov eax, ebx
call sub.rtl120.bpl__Sysutils_IntToHex_qqrii
push dword [ebp - 0x50]
push 0x5f2118
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
mov edx, 4
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov ecx, dword [ebp - 0x4c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0xc]
call fcn.005f3544
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x5f212c
call sub.rtl120.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0x54]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f1cc2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1ce9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret