Function at 0x41f230
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1152
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4fe280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], edx
mov esi, ecx
mov dword [ebp - 0x9c], esi
mov eax, dword [ebp + 0xc]
mov ecx, 0x5030e3
mov dword [ebp - 0xb0], eax
call fcn.004b99c5
cmp dword [esi + 0x10], 0
je 0x41f6b2
push str.Advapi32.dll
lea ecx, [ebp - 0xc8]
call fcn.00404530
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc8]
push eax
call fcn.004305e0
mov ecx, eax
call fcn.004306d0
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc8]
call fcn.004048c0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41f6b2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImpersonateLoggedOnUser
push esi
call edi
push str.RevertToSelf
push esi
mov dword [ebp - 0x98], eax
call edi
push str.CreateProcessAsUserW
push esi
mov dword [ebp - 0xa4], eax
call edi
push str.SetTokenInformation
push esi
mov dword [ebp - 0xa0], eax
call edi
cmp dword [ebp - 0x98], 0
mov dword [ebp - 0x94], eax
je 0x41f6b2
cmp dword [ebp - 0xa4], 0
je 0x41f6b2
cmp dword [ebp - 0xa0], 0
je 0x41f6b2
test eax, eax
je 0x41f6b2
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00417890
mov dword [ebp - 4], 5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0
push eax
mov dword [ebp - 0x14], 0xffffffff
call fcn.004187f0
test al, al
je 0x41f694
mov edi, dword [ebp - 0x90]
test edi, edi
je 0x41f694
cmp dword [ebp - 0x14], 0xffffffff
je 0x41f68d
mov dl, byte [ebp + 8]
lea eax, [ebp - 0x90]
push eax
mov ecx, edi
mov dword [ebp - 0x90], 0
call fcn.0041f6d0
add esp, 4
test al, al
je 0x41f68d
mov esi, dword [ebp - 0x90]
lea eax, [ebp - 0x14]
push 4
push eax
push 0xc
push esi
call dword [ebp - 0x94]
mov dword [ebp - 0x34], 0
test esi, esi
je 0x41f4db
push str.Userenv.dll
lea ecx, [ebp - 0xc8]
call fcn.00404530
mov byte [ebp - 4], 6
lea eax, [ebp - 0xc8]
push eax
call fcn.004305e0
mov ecx, eax
call fcn.004306d0
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc8]
call fcn.004048c0
mov byte [ebp - 4], 5
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x90], 0
je 0x41f4db
push str.Advapi32.dll
lea ecx, [ebp - 0xe0]
call fcn.00404530
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xe0]
push eax
call fcn.004305e0
mov ecx, eax
call fcn.004306d0
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xe0]
call fcn.004048c0
mov byte [ebp - 4], 5
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x41f4db
push str.SetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f4db
push str.CreateEnvironmentBlock
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f4db
push 0
push esi
lea ecx, [ebp - 0x34]
push ecx
call eax
push dword [ebp - 0xac]
mov edx, dword [ebp - 0x9c]
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0
xor eax, eax
movlpd qword [ebp - 0x7c], xmm0
mov word [ebp - 0x46], ax
mov eax, 1
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x56], xmm0
movlpd qword [ebp - 0x4e], xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x80], str.WinSta0Default
mov word [ebp - 0x58], ax
mov dword [ebp - 0x5c], 0x81
call fcn.0041f070
add esp, 4
mov byte [ebp - 4], 0x10
push esi
mov dword [ebp - 0x90], 0
call dword [ebp - 0x98]
test eax, eax
je 0x41f5e7
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x9c]
cmovae ecx, dword [ebp - 0x30]
cmp dword [eax + 0x14], 8
jb 0x41f57e
mov eax, dword [eax]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x88]
push edx
push 0
push dword [ebp - 0x34]
push 0x430
push 0
push 0
push 0
push ecx
push eax
push esi
call dword [ebp - 0xa0]
mov dword [ebp - 0x90], eax
test eax, eax
je 0x41f5b7
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x41f5cc
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x41f5e1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
call dword [ebp - 0xa4]
test esi, esi
je 0x41f5f2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 0
je 0x41f660
push str.Userenv.dll
lea ecx, [ebp - 0xe0]
call fcn.00404530
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0xe0]
push eax
call fcn.004305e0
mov ecx, eax
call fcn.004306d0
mov esi, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xe0]
call fcn.004048c0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 0x10
push str.DestroyEnvironmentBlock
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f660
push dword [ebp - 0x34]
call eax
cmp dword [ebp - 0x90], 0
setne byte [ebp - 0x89]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x30]
call fcn.004048c0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x30]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 5
jmp 0x41f69b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x89], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00417950
mov al, byte [ebp - 0x89]
jmp 0x41f6b4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448da0
mov esp, ebp
pop ebp
ret