Function at 0x4093a0
Capabilities:
Check os version

Disassembly:
mov eax, 0x128c
call fcn.0044f150
mov eax, dword [0x4890a0]
xor eax, esp
mov dword [esp + 0x1288], eax
mov eax, dword [esp + 0x1290]
push ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1298]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x12a4]
mov dword [esp + 0x44], eax
mov dword [eax], ebx
lea eax, [esp + 0x180]
push eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edx
mov byte [esp + 0x13], bl
mov dword [esp + 0x184], 0x114
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
je 0x409414
cmp dword [esp + 0x184], 6
jb 0x409414
mov byte [esp + 0xf], 1
mov ecx, dword [0x4db758]
mov edx, dword [ecx + 0x648]
push edx
lea eax, [esp + 0x298]
push 0x400
push eax
call fcn.004329ff
lea eax, [esp + 0x2a0]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409440
sub eax, edx
push ebp
sar eax, 1
inc eax
mov esi, 0x400
sub esi, eax
push 0x482c68
lea ebp, [esp + eax*2 + 0x29c]
push esi
push ebp
call fcn.004329ff
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409473
mov ecx, dword [0x4db758]
sub eax, edx
mov edx, dword [ecx + 0x640]
sar eax, 1
inc eax
push edx
sub esi, eax
lea ebp, [ebp + eax*2]
push esi
push ebp
call fcn.004329ff
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4094a5
sub eax, edx
sar eax, 1
inc eax
push 0x482c80
sub esi, eax
lea ebp, [ebp + eax*2]
push esi
push ebp
call fcn.004329ff
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4094d0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 + 2], cx
mov edx, dword [0x4db758]
mov eax, dword [edx + 0x644]
push eax
lea ecx, [esp + 0xa9c]
push 0x400
push ecx
call fcn.004329ff
lea eax, [esp + 0xaa4]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409512
sub eax, edx
sar eax, 1
inc eax
mov esi, 0x400
sub esi, eax
push 0x482c88
lea ebp, [esp + eax*2 + 0xa9c]
push esi
push ebp
call fcn.004329ff
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409544
sub eax, edx
mov edx, dword [0x4db758]
sar eax, 1
inc eax
lea ebp, [ebp + eax*2]
sub esi, eax
mov eax, dword [edx + 0x640]
push eax
push esi
push ebp
call fcn.004329ff
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409576
sub eax, edx
sar eax, 1
inc eax
push 0x482c80
sub esi, eax
lea ebp, [ebp + eax*2]
push esi
push ebp
call fcn.004329ff
mov eax, ebp
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4095a0
mov edx, dword [esp + 0x48]
sub eax, ecx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 + 2], cx
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x20], ecx
xor ecx, ecx
cmp byte [esp + 0x13], bl
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
setne cl
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x298]
mov dword [esp + 0x2c], edx
mov edx, dword [0x4db718]
mov dword [esp + 0x14], 3
dec ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0xa98]
mov dword [esp + 0x30], eax
mov eax, dword [0x4db758]
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], edi
mov esi, 0x34
mov dword [esp + 0x80], esi
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], 0xbb8
mov dword [esp + 0x90], ebx
mov dword [esp + 0x98], 0x406fd0
and ecx, 8
or ecx, 0x1000
mov dword [esp + 0x84], ecx
mov ebp, dword [eax + 0x190]
mov dword [esp + 0x94], ebp
mov ebp, dword [eax + 0x2a4]
mov dword [esp + 0xa8], ebp
lea ebp, [esp + 0x14]
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], 0xbb9
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xcc], 0x407300
mov ebp, dword [eax + 0x190]
mov dword [esp + 0xc8], ebp
mov ebp, dword [eax + 0x198]
mov dword [esp + 0xdc], ebp
lea ebp, [esp + 0x14]
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], 0xbba
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x100], 0x4078f0
mov ebp, dword [eax + 0x190]
mov dword [esp + 0xfc], ebp
mov ebp, dword [eax + 0x1f4]
mov dword [esp + 0x110], ebp
lea ebp, [esp + 0x14]
mov dword [esp + 0x104], ebp
mov dword [esp + 0x11c], esi
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edx
mov dword [esp + 0x128], 0xbbb
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x134], 0x4088d0
mov ebp, dword [eax + 0x190]
mov dword [esp + 0x130], ebp
mov ebp, dword [eax + 0x2a0]
mov dword [esp + 0x154], ecx
mov dword [esp + 0x144], ebp
lea ebp, [esp + 0x14]
mov dword [esp + 0x138], ebp
mov dword [esp + 0x150], esi
mov dword [esp + 0x158], edx
mov dword [esp + 0x15c], 0xbbc
mov dword [esp + 0x160], ebx
mov dword [esp + 0x168], 0x409220
mov ecx, dword [eax + 0x190]
mov dword [esp + 0x164], ecx
mov ecx, dword [eax + 0x2f8]
mov dword [esp + 0x178], ecx
mov ecx, ebp
mov dword [esp + 0x16c], ecx
movzx ecx, byte [esp + 0x13]
neg ecx
sbb ecx, ecx
and ecx, 0xff004020
add ecx, 0x100010c
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x40]
neg edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
mov edx, dword [eax + 0x190]
sbb edi, edi
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x80]
and edi, 4
push ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], 5
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x409380
call dword [sym.imp.comctl32.dll_PropertySheetW]
mov ecx, dword [esp + 0x24]
mov esi, eax
pop ebp
cmp ecx, ebx
je 0x40987e
mov eax, dword [esp + 0x24]
mov ebx, ecx
call fcn.0040e260
xor ebx, ebx
pop edi
cmp esi, ebx
pop esi
pop ebx
jle 0x40988e
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x409891
or eax, 0xffffffff
mov ecx, dword [esp + 0x1288]
xor ecx, esp
call fcn.00431784
add esp, 0x128c
ret