Function at 0x412cb6
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x1a0
lea ebp, [esp - 4]
mov eax, dword [0x4ff5d0]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
push 0x88
mov eax, 0x4bc97c
call fcn.004943c6
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.00493d40
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 0x413022
lea eax, [ebp + 0x104]
push eax
mov dword [ebp + 0x104], 0x94
call esi
cmp eax, ebx
je 0x413022
cmp dword [ebp + 0x108], 6
jb 0x413022
call fcn.0046f7a0
test eax, eax
je 0x412eba
lea ecx, [ebp - 0x28]
call fcn.00472090
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00472090
push str..exe
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004721b0
mov esi, eax
cmp esi, ebx
jle 0x412e5c
mov ecx, edi
add esi, 4
call fcn.004720a0
cmp esi, eax
jae 0x412da5
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x412d9e
mov eax, dword [edi]
cmp byte [eax + esi], 0x22
jne 0x412da5
inc esi
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00472b10
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004723d0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00472320
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00472fa0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004723d0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00472320
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00472b10
mov esi, 0x4d1e68
jmp 0x412e39
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.00472fa0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004723d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00472320
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00472b10
push esi
push eax
mov byte [ebp - 4], 4
call fcn.0040d604
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 1
call fcn.00472320
cmp byte [ebp - 0xd], bl
jne 0x412e04
jmp 0x412e65
push edi
lea ecx, [ebp - 0x28]
call fcn.004723d0
cmp byte [ebp - 0x11], 0xff
lea ecx, [ebp - 0x18]
jne 0x412e71
mov ecx, dword [ebp - 0x18]
cmp byte [ebp - 0x21], 0xff
lea eax, [ebp - 0x28]
jne 0x412e7d
mov eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0046f920
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
test eax, eax
je 0x412ea9
call fcn.00472320
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00472320
xor eax, eax
inc eax
jmp 0x413034
call fcn.00472320
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00472320
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 0x412ef2
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 0x412ef2
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 0x413022
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 0x413010
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 0x413007
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x412ffe
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x412ff5
push 0x44
pop esi
push esi
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00493d40
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.00493d40
add esp, 0x18
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x412fa2
mov eax, dword [edi]
push eax
lea ecx, [ebp]
call fcn.00412870
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.004103e0
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.00411fd0
cmp esi, ebx
je 0x412ff5
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], 1
cmp eax, ebx
je 0x412ff5
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 0x412ea1
push dword [ebp - 0x38]
push dword [ebp + 0x1b0]
push edi
call fcn.0040def3
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.00493f43
add ebp, 0x1a4
leave
ret