Function at 0x412478
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ac
push ebx
push esi
push edi
and byte [ebp - 0x1ac], 0
push 1
mov esi, ecx
pop ebx
xor eax, eax
push 0x40
lea edi, [ebp - 0x1ab]
pop ecx
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 0x4c]
push eax
push str._Autoup___s::ExecutePatcher_ExecutePatcher__d__starts
push ebx
mov dword [ebp - 4], eax
call fcn.00408bf4
lea eax, [ebp - 0x1ac]
push 0x104
xor edi, edi
push eax
push edi
push edi
push edi
push edi
push 0x41
call fcn.004266e9
add esp, 0x2c
test ax, ax
je 0x41286a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00412392
test eax, eax
jne 0x41288b
push 0x3c
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
pop edi
push edi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004369c0
lea eax, [ebp - 0x1ac]
add esp, 0xc
mov dword [ebp - 0x4c], eax
lea eax, [esi + 0x1d0]
add esi, 0xcc
cmp dword [ebp + 8], 0
mov dword [ebp - 0x64], edi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], 0x440
mov dword [ebp - 0x48], ebx
je 0x412543
mov edi, str.PreCopy
mov eax, edi
jmp 0x41254d
mov eax, str.PostCopy
mov edi, str.PreCopy
lea ecx, [ebp - 0x1ac]
push ecx
push eax
push dword [ebp - 4]
push str._Autoup___s::_s_Directory:_s
push ebx
call fcn.00408bf4
add esp, 0x14
cmp dword [ebp + 8], 0
mov eax, edi
jne 0x412573
mov eax, str.PostCopy
push dword [ebp - 0x54]
push eax
push dword [ebp - 4]
push str._Autoup___s::_s_lpFile:_s
push ebx
call fcn.00408bf4
add esp, 0x14
cmp dword [ebp + 8], 0
mov eax, edi
jne 0x412595
mov eax, str.PostCopy
push dword [ebp - 0x50]
push eax
push dword [ebp - 4]
push str._Autoup___s::_s_lpParameters:_s
push ebx
call fcn.00408bf4
add esp, 0x14
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], 0
mov dword [ebp - 8], eax
mov eax, edi
jne 0x4125cd
mov eax, str.PostCopy
push dword [ebp - 0xc]
push eax
push dword [ebp - 4]
push str._Autoup___s::_s_ShellExecuteEx_return:_d
push ebx
call fcn.00408bf4
add esp, 0x14
cmp dword [ebp - 0xc], 0
je 0x4125f7
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4125f7
mov dword [ebp - 0x10], eax
jmp 0x41273d
and byte [ebp - 0x5ac], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5ab]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push dword [ebp + 0xc]
stosb byte es:[edi], al
lea eax, [ebp - 0x1ac]
push eax
push str._s_s__s
lea eax, [ebp - 0x5ac]
push 0x400
push eax
call fcn.0040cc1f
xor esi, esi
add esp, 0x18
cmp dword [ebp + 8], esi
je 0x412647
mov eax, str.PreCopy
mov edi, str.PostCopy
jmp 0x41264e
mov edi, str.PostCopy
mov eax, edi
push dword [ebp - 8]
push eax
push dword [ebp - 4]
push str._Autoup___s::_s__ShellExecuteEx_Failed.___u_
push ebx
call fcn.00408bf4
add esp, 0x14
cmp dword [ebp + 8], esi
mov eax, str.PreCopy
jne 0x41266f
mov eax, edi
lea ecx, [ebp - 0x1ac]
push ecx
push eax
push dword [ebp - 4]
push str._Autoup___s::_s__createprocess_Directory:_s
push ebx
call fcn.00408bf4
add esp, 0x14
cmp dword [ebp + 8], esi
je 0x412692
mov edi, str.PreCopy
lea eax, [ebp - 0x5ac]
push eax
push edi
push dword [ebp - 4]
push str._Autoup___s::_s__createprocess_szCommand:_s
push ebx
call fcn.00408bf4
push 0x44
lea eax, [ebp - 0xa8]
pop edi
push edi
push esi
push eax
call fcn.004369c0
push 0x10
lea eax, [ebp - 0x28]
push esi
push eax
mov dword [ebp - 0xa8], edi
call fcn.004369c0
add esp, 0x2c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x5ac]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41270a
mov eax, dword [ebp - 0x28]
mov edi, str.PreCopy
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
jmp 0x412748
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], esi
mov dword [ebp - 8], eax
mov ecx, str.PreCopy
jne 0x412722
mov ecx, str.PostCopy
push eax
push dword [ebp + 0xc]
push ecx
push dword [ebp - 4]
push str._Autoup___s::_s__FAILED_to_CreateProcess_for__s___u_
push ebx
call fcn.00408bf4
add esp, 0x18
mov edi, str.PreCopy
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x412844
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x412844
cmp dword [ebp + 8], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
je 0x412767
mov eax, edi
mov esi, str.PostCopy
jmp 0x41276e
mov esi, str.PostCopy
mov eax, esi
push dword [ebp + 0xc]
push eax
push dword [ebp - 4]
push str._Autoup___s::_s__s_executed_successfully
push ebx
call fcn.00408bf4
add esp, 0x14
push 0x3e8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, ecx
je 0x4127cf
cmp eax, 0x102
jne 0x41280d
cmp dword [ebp - 0xc], 0x384
jge 0x4127ac
inc dword [ebp - 0xc]
jmp 0x412802
cmp dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
mov eax, edi
jne 0x4127b8
mov eax, esi
push dword [ebp + 0xc]
push eax
push dword [ebp - 4]
push str._Autoup___s::_s_FAILED_to_wait_for__s:time_over
push ebx
call fcn.00408bf4
add esp, 0x14
jmp 0x412802
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0
mov eax, edi
jne 0x4127e6
mov eax, esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push eax
push dword [ebp - 4]
push str._Autoup___s::_s__s_exit_code__d_
push ebx
call fcn.00408bf4
add esp, 0x18
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x41282c
jmp 0x412783
cmp dword [ebp + 8], ecx
mov ecx, edi
jne 0x412816
mov ecx, esi
push eax
push dword [ebp + 0xc]
push ecx
push dword [ebp - 4]
push str._Autoup___s::_s_FAILED_to_wait_for__s:_d
push ebx
call fcn.00408bf4
add esp, 0x18
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x18], 0
je 0x41288b
push dword [ebp - 0x18]
call esi
jmp 0x41288b
cmp dword [ebp + 8], eax
mov eax, edi
jne 0x412850
mov eax, str.PostCopy
push dword [ebp - 8]
push dword [ebp + 0xc]
push eax
push dword [ebp - 4]
push str._Autoup___s::_s_Failed_to_execute__s_GetLastErr:_u_
push ebx
call fcn.00408bf4
add esp, 0x18
jmp 0x41288b
cmp dword [ebp + 8], edi
mov eax, str.PreCopy
jne 0x412879
mov eax, str.PostCopy
push eax
push dword [ebp - 4]
push str._Autoup___s::_s_AhnUpCtl_GetInfo_fail
push ebx
call fcn.00408bf4
add esp, 0x10
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 8