Function at 0x41d016
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
and byte [ebp - 0x148], 0
push 1
mov ebx, ecx
pop esi
xor eax, eax
push 0x40
lea edi, [ebp - 0x147]
pop ecx
mov dword [ebp - 4], esi
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str._autoup__CPdTWC::ExecutePatcher_ExecutePatcher__d__starts
push esi
stosb byte es:[edi], al
call fcn.00408aae
lea eax, [ebp - 0x148]
push 0x104
xor edi, edi
push eax
push edi
push edi
push edi
push edi
push 0xc5
call fcn.00425dcc
add esp, 0x28
test ax, ax
je 0x41d21d
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
call fcn.0041ce9d
test eax, eax
jne 0x41d23b
push 0x3c
lea eax, [ebp - 0x44]
pop esi
push esi
push edi
push eax
call fcn.00436360
add esp, 0xc
add ebx, 0x4c
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x148]
push 1
mov dword [ebp - 0x30], ebx
pop edi
mov ebx, str.PreCopy
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], str.AupTWA.exe
mov dword [ebp - 0x40], 0x440
mov dword [ebp - 0x28], edi
mov esi, str.PostCopy
mov eax, ebx
jne 0x41d0d7
mov eax, esi
lea ecx, [ebp - 0x148]
push ecx
push eax
push str._autoup__CPdTWC::_s_Directory:_s
push edi
call fcn.00408aae
add esp, 0x10
cmp dword [ebp + 8], 0
mov eax, ebx
jne 0x41d0f7
mov eax, esi
push dword [ebp - 0x34]
push eax
push str._autoup__CPdTWC::_slpFile:_s
push edi
call fcn.00408aae
add esp, 0x10
cmp dword [ebp + 8], 0
mov eax, ebx
jne 0x41d113
mov eax, esi
push dword [ebp - 0x30]
push eax
push str._autoup__CPdTWC::_s_lpParameters:_s
push edi
call fcn.00408aae
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, edi
jne 0x41d1fd
and dword [ebp + 0xc], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 8], edi
mov eax, ebx
jne 0x41d148
mov eax, esi
push eax
push str._autoup__CPdTWC::_s_auptwa.exe_executed_successfully
push edi
call fcn.00408aae
add esp, 0xc
push 0x3e8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, ecx
je 0x41d1a0
cmp eax, 0x102
jne 0x41d1d5
cmp dword [ebp + 0xc], 0x384
jge 0x41d180
inc dword [ebp + 0xc]
jmp 0x41d1cd
cmp dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
mov eax, ebx
jne 0x41d18c
mov eax, esi
push dword [ebp - 4]
push eax
push str._autoup__CPdTWC::_s_FAILED_to_wait_for_auptwa.exe:time_over
push edi
call fcn.00408aae
add esp, 0x10
jmp 0x41d1cd
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0
mov eax, ebx
jne 0x41d1b7
mov eax, esi
push dword [ebp - 4]
push eax
push str._autoup__CPdTWC::_s_auptwa.exe_exit_code__d_
push edi
call fcn.00408aae
add esp, 0x10
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x41d1ec
jmp 0x41d157
cmp dword [ebp + 8], ecx
je 0x41d1dc
mov esi, ebx
push eax
push esi
push str._autoup__CPdTWC::_s_FAILED_to_wait_for_auptwa.exe:_d
push edi
call fcn.00408aae
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x41d23b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d23b
cmp dword [ebp + 8], 0
je 0x41d205
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._autoup__CPdTWC::_s_Failed_to_execute_auptwa.exe:_d
push edi
call fcn.00408aae
add esp, 0x10
jmp 0x41d23b
cmp dword [ebp + 8], edi
mov eax, str.PreCopy
jne 0x41d22c
mov eax, str.PostCopy
push eax
push str._autoup__CPdTWC::_s_AUCGI_fail
push esi
call fcn.00408aae
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8