Function at 0x403a8b
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x5c4]
sub esp, 0x644
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp + 0x5c0], eax
cmp dword [ebp + 0x5cc], 3
push ebx
mov ebx, dword [ebp + 0x5d0]
jge 0x403acf
push str.Not_enough_command_line_arguments_to_execute_a_service_command
call fcn.00401000
push eax
call fcn.00404dc4
pop ecx
pop ecx
xor eax, eax
jmp 0x403d1b
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x80], 0x414d18
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x403af2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
push dword [ebp - 0x80]
push dword [ebx + 8]
push str.Executing_service_command__ls__ID:__ls
call fcn.00401000
push eax
call fcn.00404d99
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
and dword [ebp - 0x78], 0
push str.software_update
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403cdb
push esi
push edi
lea edi, [ebx + 0xc]
mov eax, dword [edi]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov esi, 0x208
push esi
push eax
mov word [ebp + 0x3b4], ax
lea eax, [ebp + 0x3b6]
push eax
call fcn.00405140
lea eax, [ebp + 0x3b4]
push eax
call fcn.00403030
add esp, 0x10
mov dword [ebp - 0x78], eax
test eax, eax
je 0x403bad
lea eax, [ebp + 0x3b4]
push eax
push dword [ebp - 0x7c]
push str.Passed_in_path:__ls__Using_this_path_for_updating:__ls.
call fcn.00401000
push eax
call fcn.00404d99
lea eax, [ebp + 0x3b4]
push eax
call fcn.004030bc
add esp, 0x14
push 0
lea eax, [ebp + 0x3b4]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x403bff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_copy_path_to_secure_location.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
cmp dword [ebp + 0x5cc], 4
jle 0x403cc1
push 0x31
push dword [ebx + 0x10]
call fcn.004042ee
pop ecx
pop ecx
test eax, eax
jne 0x403cc1
push str.Could_not_write_update.status_could_not_copy_updater_error
call fcn.00401000
push eax
call fcn.00404dc4
pop ecx
pop ecx
jmp 0x403cc1
lea eax, [ebp + 0x3b4]
mov dword [edi], eax
xor eax, eax
push esi
push eax
mov word [ebp + 0x1a8], ax
lea eax, [ebp + 0x1aa]
push eax
call fcn.00405140
xor eax, eax
push esi
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
call fcn.00405140
mov esi, str.updater.ini
push esi
lea eax, [ebp + 0x3b4]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004046e0
add esp, 0x24
test eax, eax
je 0x403c9f
push esi
push dword [ebp - 0x7c]
lea eax, [ebp + 0x1a8]
push eax
call fcn.004046e0
add esp, 0xc
test eax, eax
je 0x403c9f
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403c9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x1a8]
push eax
push str.Could_not_copy_updater.ini_from:__ls_to__ls.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0x14
mov eax, dword [ebp + 0x5cc]
add eax, 0xfffffffd
push edi
push eax
call fcn.00403601
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x3b4]
push eax
call fcn.004030bc
add esp, 0xc
push dword [ebx + 8]
push str.Service_command__ls_complete.
call fcn.00401000
push eax
call fcn.00404d99
add esp, 0xc
pop edi
pop esi
jmp 0x403cf1
push dword [ebx + 8]
push str.Service_command_not_recognized:__ls.
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
cmp dword [ebp - 0x78], 0
mov eax, str.Success
jne 0x403d01
mov eax, str.Failure
push eax
push dword [ebx + 4]
push str.service_command__ls_complete_with_result:__ls.
call fcn.00401000
push eax
call fcn.00404d99
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp + 0x5c0]
xor ecx, ebp
pop ebx
call fcn.004051ba
add ebp, 0x5c4
leave
ret