Function at 0x412b86
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x1a0
lea ebp, [esp - 4]
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
push 0x88
mov eax, 0x4bceac
call fcn.00494508
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.00493f80
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 0x412ef2
lea eax, [ebp + 0x104]
push eax
mov dword [ebp + 0x104], 0x94
call esi
cmp eax, ebx
je 0x412ef2
cmp dword [ebp + 0x108], 6
jb 0x412ef2
call fcn.0046fae0
test eax, eax
je 0x412d8a
lea ecx, [ebp - 0x28]
call fcn.004724b0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.004724b0
push str..exe
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004725d0
mov esi, eax
cmp esi, ebx
jle 0x412d2c
mov ecx, edi
add esi, 4
call fcn.004724c0
cmp esi, eax
jae 0x412c75
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x412c6e
mov eax, dword [edi]
cmp byte [eax + esi], 0x22
jne 0x412c75
inc esi
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00472f30
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004727f0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00472740
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.004733c0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004727f0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00472740
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00472f30
mov esi, 0x4cdc80
jmp 0x412d09
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.004733c0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004727f0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00472740
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00472f30
push esi
push eax
mov byte [ebp - 4], 4
call fcn.0040d57d
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 1
call fcn.00472740
cmp byte [ebp - 0xd], bl
jne 0x412cd4
jmp 0x412d35
push edi
lea ecx, [ebp - 0x28]
call fcn.004727f0
cmp byte [ebp - 0x11], 0xff
lea ecx, [ebp - 0x18]
jne 0x412d41
mov ecx, dword [ebp - 0x18]
cmp byte [ebp - 0x21], 0xff
lea eax, [ebp - 0x28]
jne 0x412d4d
mov eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0046fcd0
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
test eax, eax
je 0x412d79
call fcn.00472740
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00472740
xor eax, eax
inc eax
jmp 0x412f04
call fcn.00472740
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00472740
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 0x412dc2
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 0x412dc2
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 0x412ef2
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 0x412ee0
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 0x412ed7
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x412ece
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x412ec5
push 0x44
pop esi
push esi
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00493f80
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.00493f80
add esp, 0x18
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x412e72
mov eax, dword [edi]
push eax
lea ecx, [ebp]
call fcn.004127a0
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.0040fc20
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.00412110
cmp esi, ebx
je 0x412ec5
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], 1
cmp eax, ebx
je 0x412ec5
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 0x412d71
push dword [ebp - 0x38]
push dword [ebp + 0x1b0]
push edi
call fcn.0040dea4
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.004944f9
add ebp, 0x1a4
leave
ret