Function at 0x433440
Capabilities:
Check os version
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb080
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x258], ecx
push 0x110
lea eax, [ebp - 0x134]
push 0
push eax
call fcn.004d0100
add esp, 0xc
mov dword [ebp - 0x138], 0x114
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x134], 6
jae 0x4334ca
xor eax, eax
jmp 0x433808
xor edi, edi
mov dword [ebp - 0x230], 0x3000
push edi
push str.Progman
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x22c], 0x3000
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x433806
lea ecx, [ebp - 0x234]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x234]
lea edx, [ebp - 0x22c]
call fcn.004332b0
test eax, eax
je 0x433806
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [ebp - 0x230]
mov ecx, eax
call fcn.004332b0
test eax, eax
je 0x433806
cmp dword [ebp - 0x230], 0x3000
jne 0x433806
cmp dword [ebp - 0x22c], 0x2000
jne 0x433806
push dword [ebp - 0x234]
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x238], esi
test esi, esi
je 0x433806
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], edi
push eax
push 0xf01ff
push esi
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4337ff
lea eax, [ebp - 0x22c]
push eax
push 1
push 2
push edi
push 0xf01ff
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x433826
mov ecx, dword [ebp - 0x22c]
call fcn.00432e60
push 0xffffffffffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x278], edi
push str.AdvApi32.dll
lea ecx, [ebp - 0x278]
movups xmmword [ebp - 0x274], xmm0
call fcn.00406c40
push 0x20a
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d0100
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jle 0x4336ec
push 0xffffffffffffffff
lea eax, [ebp - 0x228]
mov dword [ebp - 0x240], edi
xorps xmm0, xmm0
lea ecx, [ebp - 0x250]
push eax
movups xmmword [ebp - 0x250], xmm0
call fcn.00406c40
mov ecx, dword [ebp - 0x24c]
cmp ecx, 1
jl 0x43367b
mov eax, dword [ebp - 0x250]
push 1
push 0x6294f0
lea eax, [eax + ecx*2]
add eax, 0xfffffffe
push eax
call fcn.004d9259
add esp, 0xc
test eax, eax
je 0x43368b
push 0x6294f0
lea ecx, [ebp - 0x250]
call fcn.00406cf0
mov esi, dword [ebp - 0x278]
test esi, esi
je 0x43369c
mov eax, esi
cmp word [esi], di
jne 0x4336a1
mov eax, 0x628fa4
push eax
lea ecx, [ebp - 0x250]
call fcn.00406cf0
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x28c]
call fcn.00406930
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x4336d2
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x4336e5
push eax
call fcn.004d2e43
add esp, 4
test esi, esi
je 0x433711
push esi
jmp 0x433709
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x28c]
call fcn.00406930
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x433711
push eax
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x433724
push eax
call fcn.004d2e43
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x28c]
test esi, esi
je 0x43373d
cmp word [esi], 0
mov eax, esi
jne 0x433742
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4337bd
push str.CreateProcessWithTokenW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x4337b6
push 0x44
lea eax, [ebp - 0x2d8]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x24c], xmm0
call fcn.004d0100
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x2d8]
push eax
push 0
push 0
push 0
push dword [ebp - 0x254]
push dword [ebp - 0x258]
push 0
push dword [ebp - 0x22c]
call dword [ebp - 0x25c]
mov dword [ebp - 0x23c], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x22c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test esi, esi
je 0x4337d8
push esi
call fcn.004d2e43
add esp, 4
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x4337eb
push eax
call fcn.004d2e43
add esp, 4
mov esi, dword [ebp - 0x238]
push dword [ebp - 0x230]
call edi
mov edi, dword [ebp - 0x23c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cdf5d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4337f1