Function at 0x4136d6
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x1a0
lea ebp, [esp - 4]
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
push 0x88
mov eax, 0x4bae5c
call fcn.00492516
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.00491e90
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 0x413a42
lea eax, [ebp + 0x104]
push eax
mov dword [ebp + 0x104], 0x94
call esi
cmp eax, ebx
je 0x413a42
cmp dword [ebp + 0x108], 6
jb 0x413a42
call fcn.0046d950
test eax, eax
je 0x4138da
lea ecx, [ebp - 0x28]
call fcn.004703d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.004703d0
push str..exe
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004704f0
mov esi, eax
cmp esi, ebx
jle 0x41387c
mov ecx, edi
add esi, 4
call fcn.004703e0
cmp esi, eax
jae 0x4137c5
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x4137be
mov eax, dword [edi]
cmp byte [eax + esi], 0x22
jne 0x4137c5
inc esi
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00470e50
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00470710
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00470660
push esi
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.004712e0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00470710
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00470660
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00470e50
mov esi, 0x4cfe44
jmp 0x413859
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.004712e0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00470710
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00470660
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00470e50
push esi
push eax
mov byte [ebp - 4], 4
call fcn.0040d567
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 1
call fcn.00470660
cmp byte [ebp - 0xd], bl
jne 0x413824
jmp 0x413885
push edi
lea ecx, [ebp - 0x28]
call fcn.00470710
cmp byte [ebp - 0x11], 0xff
lea ecx, [ebp - 0x18]
jne 0x413891
mov ecx, dword [ebp - 0x18]
cmp byte [ebp - 0x21], 0xff
lea eax, [ebp - 0x28]
jne 0x41389d
mov eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0046dbe0
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
test eax, eax
je 0x4138c9
call fcn.00470660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00470660
xor eax, eax
inc eax
jmp 0x413a54
call fcn.00470660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00470660
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 0x413912
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 0x413912
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 0x413a42
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 0x413a30
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 0x413a27
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x413a1e
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x413a15
push 0x44
pop esi
push esi
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00491e90
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.00491e90
add esp, 0x18
cmp byte [edi + 7], 0xff
mov eax, edi
jne 0x4139c2
mov eax, dword [edi]
push eax
lea ecx, [ebp]
call fcn.004132f0
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.00410360
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.00412c60
cmp esi, ebx
je 0x413a15
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], 1
cmp eax, ebx
je 0x413a15
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 0x4138c1
push dword [ebp - 0x38]
push dword [ebp + 0x1b0]
push edi
call fcn.0040de8d
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.00492093
add ebp, 0x1a4
leave
ret