Function at 0x4127f0
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 0x55ba11
mov eax, dword fs:[0]
push eax
sub esp, 0xaa0
mov eax, dword [0x5b4450]
xor eax, esp
mov dword [esp + 0xa98], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, esp
push eax
lea eax, [esp + 0xab0]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [esp + 0x20]
push str.Tool_CopyAndBootUninstallTemp
push eax
call fcn.0040ac70
add esp, 0xc
mov dword [esp + 0xab8], esi
call fcn.00442c4d
mov ebx, dword [eax + 4]
push 0x206
lea edx, [esp + 0x82]
xor ecx, ecx
push esi
push edx
mov dword [esp + 0x24], esi
mov word [esp + 0x88], cx
call fcn.005373f0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x492]
xor eax, eax
push esi
push ecx
mov word [esp + 0x498], ax
call fcn.005373f0
add esp, 0xc
push ebx
lea esi, [esp + 0x80]
mov edi, 0x58c7b0
call fcn.0042c510
lea edx, [esp + 0x48c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x412aac
push 0x58a8c8
lea ecx, [esp + 0x14]
call fcn.00401210
lea eax, [esp + 0x48c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xabc], 1
call fcn.00401210
push 7
push str.Cn_02d_
lea ecx, [esp + 0x1c]
mov byte [esp + 0xac0], 2
call fcn.004058b0
push 0xc
push edi
lea ecx, [esp + 0x1c]
call fcn.004058b0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 1
jmp 0x412920
mov ecx, dword [esp + 0x14]
push esi
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00405ba0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call edi
test eax, eax
je 0x412949
inc esi
cmp esi, 0x64
jb 0x412920
jmp 0x412a5c
mov ecx, dword [esp + 0x10]
push 1
push ecx
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x412a5c
mov eax, dword [esp + 0x10]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x28e]
push edx
mov word [esp + 0x290], cx
call fcn.005373f0
add esp, 0xc
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x69e]
push ecx
mov word [esp + 0x6a0], ax
call fcn.005373f0
add esp, 0xc
push ebx
lea esi, [esp + 0x288]
mov edi, 0x58a8c8
call fcn.0042c510
push 0x44
lea edx, [esp + 0x38]
push 0
push edx
call fcn.005373f0
mov ecx, dword [ebx + 0x48]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push edx
mov eax, 5
push str.__s___s
mov word [esp + 0x70], ax
lea eax, [esp + 0x6a0]
push 0x208
push eax
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
call fcn.00535c9d
add esp, 0x14
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov eax, esi
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x6b4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x412a5c
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [esp + 0x1c], 1
call esi
mov eax, dword [esp + 0x28]
push eax
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 0x412a84
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 0x412aac
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.0040aed0
add esp, 0x10
lea ecx, [esp + 0x1c]
mov dword [esp + 0xab8], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret