Function at 0x4c121c
Capabilities:
Accept command line arguments
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c14cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x44
call fcn.00403b3c
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], 1
mov word [ebp - 0x44], 0xa
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 0x201
call fcn.00402ef8
mov dword [ebp - 0xc], eax
mov eax, 0x201
call fcn.00402ef8
mov dword [ebp - 0x10], eax
mov eax, pe_nt_image_headers32
call fcn.00402ef8
mov dword [ebp - 0x14], eax
mov eax, 0x208
call fcn.00402ef8
mov dword [ebp - 0x1c], eax
mov eax, 0x208
call fcn.00402ef8
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4c14ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x201
call fcn.00403b3c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, 0x201
call fcn.00403b3c
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403b3c
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x208
call fcn.00403b3c
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, 0x208
call fcn.00403b3c
mov bl, 1
xor ebx, ebx
push 0x201
mov eax, dword [ebp - 0x14]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x201
mov eax, dword [ebp - 0xc]
call fcn.004c26d4
mov esi, eax
mov eax, dword [0x4f38fc]
mov eax, dword [eax]
movzx edi, word [eax + 0x44]
mov eax, dword [0x4f38fc]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00474a78
sub esi, 1
jb 0x4c1361
sub esi, 0x4c6
je 0x4c145a
jmp 0x4c1461
call fcn.004bd7fc
add al, 0xfa
sub al, 4
jae 0x4c13f6
push 0x208
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x4f67f8]
push eax
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, 0x208
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
call fcn.00408b40
mov eax, dword [ebp - 0x20]
push eax
call sub.shlwapi.dll_PathRemoveFileSpecW
call sub.kernel32.dll_GetCommandLineW
mov dword [ebp - 0x1c], eax
push 0x4c14e0
mov eax, dword [ebp - 0x1c]
push eax
call sub.shlwapi.dll_StrCatW
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0x30
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004c0b40
test eax, eax
je 0x4c13f6
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403b3c
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, dword [ebp - 4]
push eax
push 0
push 2
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_LogonUserW
test eax, eax
je 0x4c144e
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403b3c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.advapi32.dll_ImpersonateLoggedOnUser
test eax, eax
je 0x4c1437
mov byte [ebp - 5], 1
jmp 0x4c1461
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x78]
call fcn.0040e360
mov eax, dword [ebp - 0x78]
call fcn.00448c24
jmp 0x4c1461
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x18], eax
mov bl, 1
jmp 0x4c1461
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, dword [0x4f38fc]
mov eax, dword [eax]
mov edx, edi
call fcn.00474a78
cmp bl, 1
je 0x4c130a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c14b5
mov eax, dword [ebp - 0x20]
call fcn.00402f14
mov eax, dword [ebp - 0x1c]
call fcn.00402f14
mov eax, dword [ebp - 0x14]
call fcn.00402f14
mov eax, dword [ebp - 0x10]
call fcn.00402f14
mov eax, dword [ebp - 0xc]
call fcn.00402f14
ret