Function at 0x4014f0
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x688
mov eax, dword [0x41414c]
xor eax, esp
mov dword [esp + 0x684], eax
push ebx
push esi
push 0x40
lea eax, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x34], 0
call fcn.00407330
add esp, 0xc
xor ecx, ecx
xor eax, eax
push 0x206
push ecx
lea edx, [esp + 0x7a]
push edx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x7c], cx
call fcn.00407330
add esp, 0xc
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x282]
push ecx
mov word [esp + 0x284], ax
call fcn.00407330
add esp, 0xc
call fcn.004011f0
movzx esi, dx
xor ecx, ecx
or ecx, esi
mov dword [esp + 0x14], edx
je 0x40159c
push edx
push eax
push 0x63
jmp 0x401749
lea edx, [esp + 0xc]
push edx
call fcn.004012d0
movzx esi, dx
xor ecx, ecx
add esp, 4
or ecx, esi
mov dword [esp + 0x14], edx
je 0x4015bf
push edx
push eax
push 0x6b
jmp 0x401749
mov ebx, dword [esp + 0xc]
cmp ebx, 1
je 0x4015f3
cmp ebx, 2
je 0x4015f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
add eax, 0x710000
adc edx, 0x16
push edx
push eax
push 0x72
jmp 0x401749
lea ecx, [esp + 0x70]
call fcn.00401930
movzx esi, dx
xor ecx, ecx
or ecx, esi
mov dword [esp + 0x14], edx
je 0x401612
push edx
push eax
push 0x7a
jmp 0x401749
mov eax, str.clone
cmp ebx, 1
je 0x401621
mov eax, str.reinstall
push eax
push str.WinToHDD
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x284]
push str._s_S.exe__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x44
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00407330
xor eax, eax
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 8]
push eax
push 0
push 2
push 0x411d84
push 0x411d88
push 0x411d8c
mov dword [esp + 0x40], 0x44
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
test eax, eax
lea eax, [esp + 0x298]
push eax
push 0
jne 0x4016df
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401714
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
add eax, 0x980000
adc edx, 0x15
push edx
push eax
push 0x99
jmp 0x401749
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x401714
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
add eax, 0xac0000
adc edx, 0x15
push edx
push eax
push 0xad
jmp 0x401749
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40175b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.0040e710
add eax, 0xba0000
adc edx, 0x15
push edx
push eax
push 0xbb
push str..AppLoader.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401850
add esp, 0x14
mov ecx, dword [esp + 0x68c]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004049d2
mov esp, ebp
pop ebp
ret