Function at 0x40892a
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x1a0
lea ebp, [esp - 4]
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
push 0x88
mov eax, 0x493af3
call fcn.00470906
mov eax, dword [ebp + 0x1b4]
mov edi, dword [ebp + 0x1ac]
push 0x98
mov dword [ebp - 0x38], eax
xor ebx, ebx
lea eax, [ebp + 0x108]
push ebx
push eax
call fcn.00470280
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [ebp + 0x104]
push eax
mov dword [ebp + 0x104], 0x9c
call esi
cmp eax, ebx
je 0x408c96
lea eax, [ebp + 0x104]
push eax
mov dword [ebp + 0x104], 0x94
call esi
cmp eax, ebx
je 0x408c96
cmp dword [ebp + 0x108], 6
jb 0x408c96
call fcn.004032c0
test eax, eax
je 0x408b2e
lea ecx, [ebp - 0x28]
call fcn.0044e010
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0044e010
push str..exe
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0044e0f0
mov esi, eax
cmp esi, ebx
jle 0x408ad0
mov ecx, edi
add esi, 4
call fcn.0044e020
cmp esi, eax
jae 0x408a19
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x408a12
mov eax, dword [edi]
cmp byte [eax + esi], 0x22
jne 0x408a19
inc esi
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0044ea30
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0044e310
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0044e260
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0044ee00
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0044e310
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0044e260
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044ea30
mov esi, 0x4a0c2c
jmp 0x408aad
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044ee00
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0044e310
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0044e260
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044ea30
push esi
push eax
mov byte [ebp - 4], 4
call fcn.00401283
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 1
call fcn.0044e260
cmp byte [ebp - 0xd], bl
jne 0x408a78
jmp 0x408ad9
push edi
lea ecx, [ebp - 0x28]
call fcn.0044e310
cmp byte [ebp - 0x11], 0xff
lea ecx, [ebp - 0x18]
jne 0x408ae5
mov ecx, dword [ebp - 0x18]
cmp byte [ebp - 0x21], 0xff
lea eax, [ebp - 0x28]
jne 0x408af1
mov eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.00407bd0
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
test eax, eax
je 0x408b1d
call fcn.0044e260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0044e260
xor eax, eax
inc eax
jmp 0x408ca8
call fcn.0044e260
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0044e260
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, ebx
je 0x408b66
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x3c], ebx
jbe 0x408b66
push dword [ebp - 0x3c]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x2c], ebx
je 0x408c96
lea eax, [ebp - 0x30]
push eax
mov esi, 0x2000000
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408c84
lea eax, [ebp - 0x34]
push eax
push 1
push 2
push ebx
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x408c7b
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x408c72
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x408c69
push 0x44
pop esi
push esi
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00470280
mov ax, word [ebp + 0x1b0]
mov dword [ebp - 0x94], esi
push 0x10
mov word [ebp - 0x64], ax
xor esi, esi
lea eax, [ebp - 0x50]
push ebx
inc esi
push eax
mov dword [ebp - 0x68], esi
call fcn.00470280
add esp, 0x18
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x408c16
mov eax, dword [edi]
push eax
lea ecx, [ebp]
call fcn.004053a0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push ebx
push ebx
push ebx
mov ecx, eax
mov dword [ebp - 4], 6
call fcn.00403330
push eax
push ebx
push esi
push dword [ebp - 0x34]
call dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
mov esi, eax
call fcn.004049e0
cmp esi, ebx
je 0x408c69
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], 1
cmp eax, ebx
je 0x408c69
mov ecx, dword [ebp - 0x50]
mov dword [eax], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
jne 0x408b15
push dword [ebp - 0x38]
push dword [ebp + 0x1b0]
push edi
call fcn.00401bb1
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a0]
xor ecx, ebp
call fcn.00470483
add ebp, 0x1a4
leave
ret