Function at 0x41d836
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.00408bf4
lea eax, [ebp - 0x148]
push 0x104
xor edi, edi
push eax
push edi
push edi
push edi
push edi
push 0xc5
call fcn.004266e9
add esp, 0x28
test ax, ax
je 0x41da3d
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
call fcn.0041d6bd
test eax, eax
jne 0x41da5b
push 0x3c
lea eax, [ebp - 0x44]
pop esi
push esi
push edi
push eax
call fcn.004369c0
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 0x41d8f7
mov eax, esi
lea ecx, [ebp - 0x148]
push ecx
push eax
push str._autoup__CPdTWC::_s_Directory:_s
push edi
call fcn.00408bf4
add esp, 0x10
cmp dword [ebp + 8], 0
mov eax, ebx
jne 0x41d917
mov eax, esi
push dword [ebp - 0x34]
push eax
push str._autoup__CPdTWC::_slpFile:_s
push edi
call fcn.00408bf4
add esp, 0x10
cmp dword [ebp + 8], 0
mov eax, ebx
jne 0x41d933
mov eax, esi
push dword [ebp - 0x30]
push eax
push str._autoup__CPdTWC::_s_lpParameters:_s
push edi
call fcn.00408bf4
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, edi
jne 0x41da1d
and dword [ebp + 0xc], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 8], edi
mov eax, ebx
jne 0x41d968
mov eax, esi
push eax
push str._autoup__CPdTWC::_s_auptwa.exe_executed_successfully
push edi
call fcn.00408bf4
add esp, 0xc
push 0x3e8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, ecx
je 0x41d9c0
cmp eax, 0x102
jne 0x41d9f5
cmp dword [ebp + 0xc], 0x384
jge 0x41d9a0
inc dword [ebp + 0xc]
jmp 0x41d9ed
cmp dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
mov eax, ebx
jne 0x41d9ac
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.00408bf4
add esp, 0x10
jmp 0x41d9ed
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 0x41d9d7
mov eax, esi
push dword [ebp - 4]
push eax
push str._autoup__CPdTWC::_s_auptwa.exe_exit_code__d_
push edi
call fcn.00408bf4
add esp, 0x10
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x41da0c
jmp 0x41d977
cmp dword [ebp + 8], ecx
je 0x41d9fc
mov esi, ebx
push eax
push esi
push str._autoup__CPdTWC::_s_FAILED_to_wait_for_auptwa.exe:_d
push edi
call fcn.00408bf4
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x41da5b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41da5b
cmp dword [ebp + 8], 0
je 0x41da25
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.00408bf4
add esp, 0x10
jmp 0x41da5b
cmp dword [ebp + 8], edi
mov eax, str.PreCopy
jne 0x41da4c
mov eax, str.PostCopy
push eax
push str._autoup__CPdTWC::_s_AUCGI_fail
push esi
call fcn.00408bf4
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8