Function at 0x409790
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a71a
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x422084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x114
xor esi, esi
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.004107d0
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
push esi
jb 0x409b91
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push esi
push esi
push 3
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x409bf8
mov dword [ebp - 0x130], esi
lea edx, [ebp - 0x130]
push edx
push 0x41e3cc
push 1
push esi
push 0x41e5dc
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x409853
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
jmp 0x409bec
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x178]
push eax
call esi
mov ecx, dword [ebp - 0x170]
mov edx, dword [ebp - 0x16c]
mov edi, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x174]
lea eax, [ebp - 0x198]
push eax
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x19c], edx
call esi
mov edx, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], ecx
mov ecx, dword [ebp - 0x18c]
lea edx, [ebp - 0x188]
push edx
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], ecx
call esi
mov ecx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x188]
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x168]
push ecx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], eax
call esi
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x1a0]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x19c]
mov dword [eax + 0xc], esi
mov esi, dword [ebp - 0x148]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x144]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x140]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x13c]
mov dword [eax + 0xc], esi
mov esi, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x130]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x154]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x150]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x14c]
mov dword [eax + 0xc], esi
mov esi, dword [ebp - 0x168]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [ebp - 0x164]
mov dword [eax + 4], esi
mov esi, dword [ebp - 0x160]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x15c]
mov dword [eax + 0xc], esi
push ecx
mov eax, dword [edx + 0x28]
call eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x168]
test eax, eax
push ecx
sets bl
call esi
lea edx, [ebp - 0x188]
push edx
call esi
lea eax, [ebp - 0x198]
push eax
call esi
lea ecx, [ebp - 0x178]
push ecx
call esi
test bl, bl
je 0x4099fc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x409bf8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x409bf8
xor ebx, ebx
mov dword [ebp - 0x134], ebx
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x130]
push 0xc
call fcn.0040b59c
mov esi, eax
add esp, 4
mov dword [ebp - 0x12c], esi
mov byte [ebp - 4], 6
cmp esi, ebx
je 0x409a4d
push 0x41eb04
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
jne 0x409a4f
push 0x8007000e
call fcn.00416000
xor esi, esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x12c], esi
cmp esi, ebx
jne 0x409a67
push 0x8007000e
call fcn.00416000
mov byte [ebp - 4], 7
mov eax, dword [esi]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x1c]
lea edx, [ebp - 0x134]
push edx
push eax
push edi
call ecx
lea edx, [esi + 8]
test eax, eax
push edx
sets bl
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x409aba
mov eax, dword [esi]
test eax, eax
je 0x409aa1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x409ab1
push eax
call fcn.0040bb97
add esp, 4
push esi
call fcn.0040b23d
add esp, 4
test bl, bl
jne 0x409b6a
mov edi, dword [ebp - 0x134]
push 0xc
call fcn.0040b59c
mov esi, eax
add esp, 4
mov dword [ebp - 0x12c], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x409b0b
push 0x41efb8
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x409b0d
push 0x8007000e
call fcn.00416000
xor esi, esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x12c], esi
test esi, esi
jne 0x409b25
push 0x8007000e
call fcn.00416000
mov byte [ebp - 4], 9
mov ecx, dword [esi]
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
push 0
push ecx
push edi
call edx
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x409b6a
mov eax, dword [esi]
test eax, eax
je 0x409b51
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x409b61
push eax
call fcn.0040bb97
add esp, 4
push esi
call fcn.0040b23d
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x409b80
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
test eax, eax
jmp 0x409bee
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x12c], esi
lea eax, [ebp - 0x12c]
push eax
push 0x41e67c
push 1
push esi
push 0x41e69c
mov dword [ebp - 4], 0xa
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x409bdf
mov dword [ebp - 0x134], esi
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0x41efb8
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x12c]
cmp eax, esi
je 0x409bf8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b177
mov esp, ebp
pop ebp
ret