Function at 0x410f69
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 - 0xc], esi
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push str._Autoup___s::ExecutePatcher_ExecutePatcher__d__starts
push ebx
stosb byte es:[edi], al
call fcn.00408aae
lea eax, [ebp - 0x1ac]
push 0x104
xor edi, edi
push eax
mov ax, word [esi + 0x288]
push edi
push edi
push edi
push edi
push eax
call fcn.00425dcc
add esp, 0x2c
test ax, ax
je 0x411352
push 0x3c
lea eax, [ebp - 0x64]
pop esi
mov dword [ebp - 8], edi
push esi
push edi
push eax
mov dword [ebp - 0x14], edi
call fcn.00436360
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x1ac]
add esp, 0xc
cmp dword [ebp + 8], edi
mov dword [ebp - 0x4c], eax
lea eax, [esi + 0x184]
mov dword [ebp - 0x60], 0x440
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], ebx
je 0x411021
mov eax, str.PreCopy
mov edi, str.PostCopy
jmp 0x411028
mov edi, str.PostCopy
mov eax, edi
lea ecx, [ebp - 0x1ac]
push ecx
push eax
push esi
push str._Autoup___s::_s_Directory:_s
push ebx
call fcn.00408aae
add esp, 0x14
cmp dword [ebp + 8], 0
mov eax, str.PreCopy
jne 0x41104c
mov eax, edi
push dword [ebp - 0x54]
push eax
push esi
push str._Autoup___s::_s_lpFile:_s
push ebx
call fcn.00408aae
add esp, 0x14
cmp dword [ebp + 8], 0
mov eax, str.PreCopy
jne 0x41106c
mov eax, edi
push dword [ebp - 0x50]
push eax
push esi
push str._Autoup___s::_s_lpParameters:_s
push ebx
call fcn.00408aae
add esp, 0x14
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], 0
mov dword [ebp - 0x18], eax
mov eax, str.PreCopy
jne 0x4110a2
mov eax, edi
push dword [ebp - 4]
push eax
push esi
push str._Autoup___s::_s_ShellExecuteEx_return:_d
push ebx
call fcn.00408aae
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x4110ca
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4110ca
mov dword [ebp - 8], eax
jmp 0x41121b
and byte [ebp - 0x5ac], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5ab]
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esi + 0x184]
push eax
lea eax, [ebp - 0x1ac]
push eax
push str._s_s__s
lea eax, [ebp - 0x5ac]
push 0x400
push eax
call fcn.0040cad9
xor edi, edi
add esp, 0x18
cmp dword [ebp + 8], edi
mov eax, str.PreCopy
jne 0x41111e
mov eax, str.PostCopy
push dword [ebp - 0x18]
push eax
push esi
push str._Autoup___s::_s__ShellExecuteEx_Failed.___u_
push ebx
call fcn.00408aae
add esp, 0x14
cmp dword [ebp + 8], edi
mov eax, str.PreCopy
jne 0x411140
mov eax, str.PostCopy
lea ecx, [ebp - 0x1ac]
push ecx
push eax
push esi
push str._Autoup___s::_s__createprocess_Directory:_s
push ebx
call fcn.00408aae
add esp, 0x14
cmp dword [ebp + 8], edi
mov eax, str.PreCopy
jne 0x411166
mov eax, str.PostCopy
lea ecx, [ebp - 0x5ac]
push ecx
push eax
push esi
push str._Autoup___s::_s__createprocess_szCommand:_s
push ebx
call fcn.00408aae
push 0x44
lea eax, [ebp - 0xa8]
pop esi
push esi
push edi
push eax
call fcn.00436360
push 0x10
lea eax, [ebp - 0x28]
push edi
push eax
mov dword [ebp - 0xa8], esi
call fcn.00436360
add esp, 0x2c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x1ac]
push eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x5ac]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4111df
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov edi, str.PostCopy
jmp 0x411226
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 8], edi
mov dword [ebp - 0x18], eax
mov ecx, str.PreCopy
jne 0x4111f7
mov ecx, str.PostCopy
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x184
push eax
push ecx
push dword [ebp - 0xc]
push str._Autoup___s::_s__FAILED_to_CreateProcess_for__s___u_
push ebx
call fcn.00408aae
mov esi, dword [ebp - 0xc]
add esp, 0x18
mov edi, str.PostCopy
xor eax, eax
cmp dword [ebp - 4], eax
je 0x41132a
xor eax, eax
cmp dword [ebp - 8], eax
je 0x41132a
cmp dword [ebp + 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], eax
mov ecx, str.PreCopy
jne 0x411243
mov ecx, edi
lea eax, [esi + 0x184]
push eax
push ecx
push esi
push str._Autoup___s::_s__s_executed_successfully
push ebx
call fcn.00408aae
add esp, 0x14
push 0x3e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, ecx
je 0x4112ab
cmp eax, 0x102
jne 0x4112ee
cmp dword [ebp + 0xc], 0x708
jge 0x411283
inc dword [ebp + 0xc]
jmp 0x4112e3
cmp dword [ebp + 8], ecx
mov dword [ebp - 4], ecx
mov ecx, str.PreCopy
jne 0x411292
mov ecx, edi
lea eax, [esi + 0x184]
push eax
push ecx
push esi
push str._Autoup___s::_s_FAILED_to_wait_for__s:time_over
push ebx
call fcn.00408aae
add esp, 0x14
jmp 0x4112e3
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0
mov ecx, str.PreCopy
jne 0x4112c5
mov ecx, edi
push dword [ebp - 0x10]
lea eax, [esi + 0x184]
push eax
push ecx
push esi
push str._Autoup___s::_s__s_exit_code__d_
push ebx
call fcn.00408aae
add esp, 0x18
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x411312
jmp 0x41125a
cmp dword [ebp + 8], ecx
mov ecx, str.PreCopy
jne 0x4112fa
mov ecx, edi
push eax
lea eax, [esi + 0x184]
push eax
push ecx
push esi
push str._Autoup___s::_s_FAILED_to_wait_for__s:_d
push ebx
call fcn.00408aae
add esp, 0x18
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x14], 0
je 0x411371
push dword [ebp - 0x14]
call esi
jmp 0x411371
cmp dword [ebp + 8], eax
mov ecx, str.PreCopy
jne 0x411336
mov ecx, edi
push dword [ebp - 0x18]
lea eax, [esi + 0x184]
push eax
push ecx
push esi
push str._Autoup___s::_s_Failed_to_execute__s_GetLastErr:_u_
push ebx
call fcn.00408aae
add esp, 0x18
jmp 0x411371
cmp dword [ebp + 8], edi
mov eax, str.PreCopy
jne 0x411361
mov eax, str.PostCopy
push eax
push esi
push str._Autoup___s::_s_AhnUpCtl_GetInfo_fail
push ebx
call fcn.00408aae
add esp, 0x10
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 8