Function at 0x4178d0
Capabilities:
Check if file exists
Copy file
Create process on windows
Create process suspended
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x584bd1
mov eax, dword fs:[0]
push eax
sub esp, 0xaa0
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0xa98], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0xab0]
mov dword fs:[0], eax
xor esi, esi
push esi
push str.Tool_CopyAndBootUninstallTemp
push esi
lea ecx, [esp + 0x28]
call fcn.0044ca70
add esp, 0xc
mov dword [esp + 0xab8], esi
call fcn.0046d2d8
mov ebx, dword [eax + 4]
push 0x206
lea ecx, [esp + 0x82]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x24], esi
mov word [esp + 0x88], ax
call fcn.0055ca80
add esp, 0xc
push 0x206
lea eax, [esp + 0x492]
xor edx, edx
push esi
push eax
mov word [esp + 0x498], dx
call fcn.0055ca80
add esp, 0xc
push ebx
lea esi, [esp + 0x80]
mov edi, 0x5b9300
call fcn.00430bd0
lea ecx, [esp + 0x48c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x417b8c
push 0x5b69a4
lea ecx, [esp + 0x14]
call fcn.00403340
lea edx, [esp + 0x48c]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0xabc], 1
call fcn.00403340
push 7
push str.Cn_02d_
lea ecx, [esp + 0x1c]
mov byte [esp + 0xac0], 2
call fcn.0040fb30
push 0xc
push edi
lea ecx, [esp + 0x1c]
call fcn.0040fb30
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 1
jmp 0x417a00
mov eax, dword [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040a740
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call edi
test eax, eax
je 0x417a29
inc esi
cmp esi, 0x64
jb 0x417a00
jmp 0x417b3c
mov eax, dword [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x417b3c
mov edx, dword [esp + 0x10]
push 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x28e]
push ecx
mov word [esp + 0x290], ax
call fcn.0055ca80
add esp, 0xc
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x69e]
push eax
mov word [esp + 0x6a0], dx
call fcn.0055ca80
add esp, 0xc
push ebx
lea esi, [esp + 0x288]
mov edi, 0x5b69a4
call fcn.00430bd0
push 0x44
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.0055ca80
mov eax, dword [ebx + 0x48]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
push ecx
mov edx, 5
push str.__s___s
mov word [esp + 0x70], dx
lea edx, [esp + 0x6a0]
push 0x208
push edx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
call fcn.005578c0
add esp, 0x14
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edx, esi
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x417b3c
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [esp + 0x1c], 1
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov byte [esp + 0xab8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab8], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push esi
push str.return___08x
lea ecx, [esp + 0x24]
push 2
push ecx
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0x1c]
mov dword [esp + 0xab8], 0xffffffff
call fcn.0044cc70
mov eax, esi
mov ecx, dword [esp + 0xab0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa98]
xor ecx, esp
call fcn.0055649d
mov esp, ebp
pop ebp
ret