Function at 0x10004620
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10028a96
mov eax, dword fs:[0]
push eax
sub esp, 0x8a8
mov eax, dword [0x1003230c]
xor eax, esp
mov dword [esp + 0x8a0], eax
push ebx
push esi
push edi
mov eax, dword [0x1003230c]
xor eax, esp
push eax
lea eax, [esp + 0x8b8]
mov dword fs:[0], eax
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], cx
mov dword [esp + 0x8c0], edi
xor edx, edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], edi
mov word [esp + 0x78], dx
push 0x40
lea eax, [esp + 0x34]
push edi
mov byte [esp + 0x8c8], 1
push eax
mov dword [esp + 0x20], edi
xor ebx, ebx
mov dword [esp + 0x38], edi
call fcn.10017160
add esp, 0xc
lea ecx, [esp + 0x90]
push ecx
xor eax, eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esp
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 7
mov eax, str.UPD_DIR
mov word [esi + 4], dx
call fcn.10005d40
mov ecx, dword [ebp + 8]
call fcn.10006950
add esp, 0x20
cmp eax, edi
je 0x10004766
push str.Upd_dir_or_CustomactionData_property_empty
call fcn.10001180
mov esi, 8
add esp, 4
cmp dword [esp + 0x8c], esi
jb 0x10004733
mov eax, dword [esp + 0x78]
push eax
call fcn.10011720
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], edi
mov word [esp + 0x78], cx
cmp dword [esp + 0xa8], esi
jb 0x100049d7
mov edx, dword [esp + 0x94]
push edx
jmp 0x100049cf
cmp dword [esp + 0xa4], edi
jne 0x10004776
push str.Updater_path_empty
jmp 0x10004710
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x1000478e
lea eax, [esp + 0x94]
push eax
call fcn.10001180
add esp, 4
push 1
mov eax, 0x1002c79c
lea ecx, [esp + 0x78]
call fcn.10005c60
push edi
lea eax, [esp + 0x94]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x7c]
call fcn.10005ba0
push 0xc
mov eax, str.Updater.exe_
mov ecx, esi
call fcn.10005c60
mov ecx, 1
push str.advapi32.dll
mov dword [esp + 0x38], str.winsta0default
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], cx
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x100048d0
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x100048bb
call fcn.100050f0
mov ebx, eax
cmp ebx, edi
je 0x100048ae
push edi
push ebx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x1000484a
push str.CreateEnvBlock_failed
call fcn.10001180
add esp, 4
mov ecx, dword [esp + 0x94]
mov eax, 8
cmp dword [esp + 0xa8], eax
jae 0x10004866
lea ecx, [esp + 0x94]
cmp dword [esp + 0x8c], eax
mov eax, dword [esp + 0x78]
jae 0x10004877
lea eax, [esp + 0x78]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push 0x420
push eax
push edi
push edi
push ebx
call esi
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x100048bb
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x100048bb
push str.Token_value_null
call fcn.10001180
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x14], edi
jne 0x1000497b
push str.CreateProcessWithTokenW_failed
call fcn.10001180
mov ecx, dword [esp + 0x98]
mov esi, 8
add esp, 4
cmp dword [esp + 0xa8], esi
jae 0x100048f9
lea ecx, [esp + 0x94]
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], esi
jae 0x1000490a
lea eax, [esp + 0x78]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x30]
push edx
push ecx
push edi
push 0x20
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10004980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7fe
mov esi, eax
lea ecx, [esp + 0xb2]
xor eax, eax
push edi
push ecx
mov word [esp + 0xb8], ax
call fcn.10017160
add esp, 0xc
push ebx
push esi
push str.LaunchUpdater_failed___last_error:__d_token__d
lea edx, [esp + 0xb8]
push 0x104
push edx
call fcn.10011853
lea eax, [esp + 0xc0]
add esp, 0x14
push eax
call fcn.10001180
add esp, 4
mov esi, 8
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x1000498f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x8c], esi
jb 0x100049a5
mov ecx, dword [esp + 0x78]
push ecx
call fcn.10011720
add esp, 4
xor edx, edx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], edi
mov word [esp + 0x78], dx
cmp dword [esp + 0xa8], esi
jb 0x100049d7
mov eax, dword [esp + 0x94]
push eax
call fcn.10011720
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x8b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8a0]
xor ecx, esp
call fcn.1001172b
mov esp, ebp
pop ebp
ret 4