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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fce47
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x55a064]
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 - 0x320], edx
mov dword [ebp - 0x308], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x324], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x314], eax
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x30c]
mov dword [ebp - 4], 0
push eax
push 0x20
mov dword [ebp - 0x30c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call esi
test eax, eax
je 0x4c5a45
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x304], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
mov dword [ebp - 0x300], 0x6a
jne 0x4c5aaa
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x20]
call fcn.004e6460
lea eax, [ebp - 0x4c]
mov byte [ebp - 0x1c], 1
push eax
push str.SeIncreaseQuotaPrivilege
push 0
mov dword [ebp - 0x50], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4c55a4
call fcn.0047f070
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push ecx
call fcn.0047f7b0
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.00428230
add esp, 8
mov byte [ebp - 4], 2
jmp 0x4c5a7c
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x304], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
mov dword [ebp - 0x300], 0x83
je 0x4c5a35
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x300], eax
test eax, eax
je 0x4c561c
call fcn.0047f070
sub esp, 8
mov esi, eax
mov ecx, esp
push ecx
call fcn.004c8040
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.00428230
add esp, 8
mov byte [ebp - 4], 3
jmp 0x4c5a7c
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
jne 0x4c5650
call fcn.0047f070
sub esp, 8
mov esi, eax
mov ecx, esp
push str.No_desktop_shell_is_present.
call fcn.004276c0
lea ecx, [ebp - 0x40]
call fcn.0041a150
add esp, 8
mov byte [ebp - 4], 4
jmp 0x4c5a7c
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x31c], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x31c]
test eax, eax
jne 0x4c569c
call fcn.0047f070
sub esp, 8
mov esi, eax
mov ecx, esp
push str.Unable_to_get_PID_of_desktop_shell.
call fcn.004276c0
lea ecx, [ebp - 0x40]
call fcn.0041a150
add esp, 8
mov byte [ebp - 4], 5
jmp 0x4c5a7c
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x310]
call fcn.004e6460
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x300], 0
call fcn.004e6620
test al, al
je 0x4c570e
call fcn.0047f070
mov esi, eax
call edi
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push ecx
call fcn.004c8060
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.00428230
add esp, 8
mov byte [ebp - 4], 7
jmp 0x4c5a7c
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x30c]
mov byte [ebp - 4], 8
push eax
push 2
push dword [ebp - 0x310]
mov dword [ebp - 0x30c], 0
call esi
test eax, eax
jne 0x4c576d
call fcn.0047f070
mov esi, eax
call edi
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push str.Cant_get_process_token_of_desktop_shell:_error_code_.
call fcn.004276c0
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.00428230
add esp, 8
mov byte [ebp - 4], 9
jmp 0x4c5a7c
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x304], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
mov dword [ebp - 0x300], 0x6a
jne 0x4c5aaa
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x28]
call fcn.004e6460
mov byte [ebp - 0x24], 1
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x30c]
mov byte [ebp - 4], 0xa
push eax
push 1
push 2
push 0
push 0x18b
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x4c57f8
call fcn.0047f070
mov esi, eax
call edi
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push ecx
call fcn.004c8080
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.00428230
add esp, 8
mov byte [ebp - 4], 0xb
jmp 0x4c5a7c
cmp byte [ebp - 0x14], 0
mov dword [ebp - 0x304], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
mov dword [ebp - 0x300], 0x6a
jne 0x4c5aaa
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x18]
call fcn.004e6460
mov edx, dword [ebp - 0x320]
lea ecx, [ebp - 0x98]
mov byte [ebp - 0x14], 1
call fcn.004d6a10
mov edx, dword [ebp - 0x324]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.004d6a10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x314]
call fcn.004d6a10
push 0x44
lea eax, [ebp - 0x38c]
mov byte [ebp - 4], 0xe
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x318], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x314], 0x83
cmovae eax, dword [ebp - 0x68]
lea edx, [ebp - 0x98]
cmp dword [ebp - 0x6c], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x348], xmm0
cmovae ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x84], 8
cmovae edx, dword [ebp - 0x98]
cmp byte [ebp - 0x14], 0
je 0x4c5a9a
lea esi, [ebp - 0x348]
push esi
lea esi, [ebp - 0x38c]
push esi
push eax
push 0
push 0
push ecx
push edx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x4c591e
call fcn.0047f070
mov esi, eax
call edi
sub esp, 8
mov dword [ebp - 0x314], eax
mov ecx, esp
push ecx
call fcn.004c80a0
lea edx, [ebp - 0x314]
lea ecx, [ebp - 0x40]
call fcn.00428230
add esp, 8
mov byte [ebp - 4], 0xf
jmp 0x4c5a7c
push dword [ebp - 0x348]
lea ecx, [ebp - 0x338]
call fcn.004e6460
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x334]
push dword [ebp - 0x344]
call fcn.004e6460
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x330]
push dword [ebp - 0x34c]
call fcn.004e6460
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x32c]
push dword [ebp - 0x354]
call fcn.004e6460
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x328]
push dword [ebp - 0x350]
call fcn.004e6460
mov esi, dword [ebp - 0x308]
lea ecx, [ebp - 0x328]
mov eax, dword [ebp - 0x340]
mov dword [esi], eax
call fcn.004e6530
lea ecx, [ebp - 0x32c]
call fcn.004e6530
lea ecx, [ebp - 0x330]
call fcn.004e6530
lea ecx, [ebp - 0x334]
call fcn.004e6530
lea ecx, [ebp - 0x338]
call fcn.004e6530
lea ecx, [ebp - 0x68]
call fcn.0042ff30
lea ecx, [ebp - 0x80]
call fcn.0042ff30
lea ecx, [ebp - 0x98]
call fcn.0042ff30
cmp byte [ebp - 0x14], 0
je 0x4c59f1
lea ecx, [ebp - 0x18]
call fcn.004e6530
cmp byte [ebp - 0x24], 0
je 0x4c59ff
lea ecx, [ebp - 0x28]
call fcn.004e6530
lea ecx, [ebp - 0x310]
call fcn.004e6530
cmp byte [ebp - 0x1c], 0
je 0x4c5a18
lea ecx, [ebp - 0x20]
call fcn.004e6530
mov eax, esi
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.004e9056
mov esp, ebp
pop ebp
ret
mov edx, str.has_value__
lea ecx, [ebp - 0x304]
call fcn.00419be0
call fcn.0047f070
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push str.OpenProcessToken_failed_with_code_.
call fcn.004276c0
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.00428230
add esp, 8
mov byte [ebp - 4], 1
push esi
push eax
lea ecx, [ebp - 0x2fc]
call fcn.004c4030
push 0x54b868
lea eax, [ebp - 0x2fc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov edx, str.has_value__
lea ecx, [ebp - 0x318]
call fcn.00419be0
mov edx, str._has_value__
lea ecx, [ebp - 0x304]
call fcn.00419be0
int3