Function at 0x10011338
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push edi
xor edi, edi
push 0x98
lea eax, [ebp - 0xbc]
push edi
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc0], edi
call sub.ntdll.dll_memset
add esp, 0xc
push 2
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x1001138e
cmp eax, 1
je 0x1001138e
cmp eax, 0x80010106
jne 0x10011574
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10011522
cmp byte [ebp - 0x26], 1
jne 0x100113c9
cmp dword [ebp - 0xbc], 5
jne 0x100113c9
cmp dword [ebp - 0xb8], 2
jb 0x10011522
push esi
push 0x104
lea eax, [ebp - 0x2c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea eax, [ebp - 0x2c8]
push eax
call esi
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x10011521
push ebx
push 0x1002252c
call esi
mov ebx, eax
cmp ebx, edi
je 0x1001150e
push 0x10022560
push 0x10022550
call fcn.10011308
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x1001150e
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x1001150e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x1001150e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x1001150e
cmp word [ebp - 0x14], 0xffff
jne 0x1001150e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x50]
test eax, eax
jne 0x1001150e
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x1001150e
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x28]
cmp eax, 0x80070002
jne 0x100114eb
push 0x10022580
push 0x10022570
call fcn.10011308
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1001150e
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x1001150e
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x1001150e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x38]
test eax, eax
jne 0x1001150e
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
jmp 0x1001150e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jne 0x1001150e
cmp word [ebp - 0x18], 0xffff
je 0x1001150e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x48]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
cmp ebx, edi
je 0x10011520
push ebx
call esi
pop ebx
pop esi
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x1001152f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x1001153c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x10011549
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x10011556
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x10011563
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x24], edi
je 0x1001156e
cmp dword [ebp - 0x24], 1
jne 0x10011574
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
leave
ret