Function at 0x4048fb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x22c
mov eax, dword [0x4806f0]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
push ebx
mov ebx, dword [ebp + 0x74]
push esi
push edi
push 0x98
mov dword [ebp - 0x60], eax
xor edi, edi
lea eax, [ebp - 0x30]
push edi
push eax
mov dword [ebp - 0x54], ebx
call fcn.0044f280
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0x9c
call esi
cmp eax, edi
je 0x404bfe
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0x94
call esi
cmp eax, edi
je 0x404bfe
cmp dword [ebp - 0x30], 6
jb 0x404bfe
call fcn.0042be20
test eax, eax
je 0x404a99
lea ecx, [ebp - 0x44]
call fcn.0042ef80
lea ecx, [ebp - 0x3c]
call fcn.0042ef80
push str..exe
mov ecx, ebx
call fcn.0042f060
mov esi, eax
cmp esi, edi
jle 0x404a41
add esi, 4
cmp byte [ebx + 7], 0xff
mov eax, ebx
jne 0x4049ad
mov eax, dword [ebx]
cmp byte [eax + esi], 0x22
jne 0x4049b4
inc esi
push esi
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
call fcn.0042f880
push eax
lea ecx, [ebp - 0x44]
call fcn.0042f220
lea ecx, [ebp - 0x50]
call fcn.0042f1e0
push esi
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
call fcn.0042fcb0
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042f220
lea ecx, [ebp - 0x50]
call fcn.0042f1e0
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042f880
cmp byte [eax + 7], 0xff
jne 0x404a04
mov eax, dword [eax]
push 0x4728a4
push eax
call fcn.0044ebc0
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x50]
inc bl
call fcn.0042f1e0
test bl, bl
je 0x404a4c
push 1
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042fcb0
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042f220
lea ecx, [ebp - 0x68]
jmp 0x4049e9
push ebx
lea ecx, [ebp - 0x44]
call fcn.0042f220
jmp 0x404a4f
mov ebx, dword [ebp - 0x54]
cmp byte [ebp - 0x35], 0xff
lea ecx, [ebp - 0x3c]
jne 0x404a5b
mov ecx, dword [ebp - 0x3c]
cmp byte [ebp - 0x3d], 0xff
lea eax, [ebp - 0x44]
jne 0x404a67
mov eax, dword [ebp - 0x44]
push ecx
push eax
call fcn.0042c250
pop ecx
pop ecx
lea ecx, [ebp - 0x3c]
test eax, eax
je 0x404a8c
call fcn.0042f1e0
lea ecx, [ebp - 0x44]
call fcn.0042f1e0
xor eax, eax
inc eax
jmp 0x404c0d
call fcn.0042f1e0
lea ecx, [ebp - 0x44]
call fcn.0042f1e0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x48], edi
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, edi
je 0x404ad1
lea ecx, [ebp - 0x64]
push ecx
push eax
mov dword [ebp - 0x64], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x64], edi
jbe 0x404ad1
push dword [ebp - 0x64]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edi
cmp dword [ebp - 0x48], edi
je 0x404bfe
lea eax, [ebp - 0x58]
push eax
mov esi, 0x2000000
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ebx, ebx
inc ebx
test eax, eax
je 0x404be9
lea eax, [ebp - 0x5c]
push eax
push ebx
push 2
push edi
push esi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x404be0
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x38], eax
cmp eax, edi
je 0x404bd7
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
cmp eax, edi
je 0x404bce
push 0x44
pop esi
push esi
lea eax, [ebp - 0xbc]
push edi
push eax
call fcn.0044f280
mov ax, word [ebp + 0x78]
push 0x10
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0x78]
push edi
push eax
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0x90], ebx
call fcn.0044f280
mov eax, dword [ebp - 0x54]
add esp, 0x18
cmp byte [eax + 7], 0xff
jne 0x404b84
mov eax, dword [eax]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0xbc]
push ecx
push edi
push edi
push edi
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00404170
mov ecx, eax
call fcn.00402fe0
push eax
push edi
push ebx
push dword [ebp - 0x5c]
call dword [ebp - 0x40]
lea ecx, [ebp - 0x1c0]
mov esi, eax
call fcn.00403fa0
cmp esi, edi
je 0x404bce
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], ebx
cmp eax, edi
je 0x404bce
mov ecx, dword [ebp - 0x78]
mov dword [eax], ecx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4c], edi
je 0x404bfb
mov eax, ebx
jmp 0x404c0d
mov ebx, dword [ebp - 0x54]
push dword [ebp - 0x60]
push dword [ebp + 0x78]
push ebx
call fcn.00401b85
add esp, 0xc
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f6e0
add ebp, 0x6c
leave
ret