Function at 0x439aa0
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eca49
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], edi
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
call fcn.005dc5e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
call fcn.005dc5e0
push 1
push 1
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.005dc260
lea edx, [esi + 0x1c]
mov ecx, eax
call fcn.005e88c0
push 1
push 1
push edi
lea ecx, [ebp - 0x20]
call fcn.005dc260
lea edx, [esi + 0x1c]
mov ecx, eax
call fcn.005e88c0
push 0x1a
lea ecx, [ebp - 0x70]
xor bl, bl
call fcn.005d8190
push 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str..tempsrc
movq qword [ebp - 0x48], xmm0
call fcn.005dc190
push eax
call fcn.004399b0
push eax
lea ecx, [ebp - 0x48]
call fcn.005dc570
push 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push str..tempdst
movq qword [ebp - 0x54], xmm0
call fcn.005dc190
push eax
call fcn.004399b0
push eax
lea ecx, [ebp - 0x54]
call fcn.005dc570
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0045b3c0
test al, al
jne 0x439bd3
lea ecx, [ebp - 0x20]
call fcn.005dc190
mov ecx, eax
call fcn.005cc690
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x3c]
call fcn.005dc480
mov esi, dword [ebp - 0x70]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test al, al
je 0x439d24
lea ecx, [ebp - 0x3c]
call fcn.005dc190
push eax
call edi
test eax, eax
je 0x439d24
mov al, byte [ebp + 0x10]
lea ecx, [ebp - 0x48]
and al, 1
movzx eax, al
push eax
call fcn.005dc190
push eax
lea ecx, [ebp - 0x3c]
call fcn.005dc190
push eax
call fcn.00439fa0
mov bl, al
test bl, bl
je 0x439d24
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call edi
test eax, eax
je 0x439cbf
push esi
push 4
lea ecx, [ebp - 0x20]
call fcn.005dc190
mov edx, 1
mov ecx, eax
call fcn.005d76e0
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffff8
lea ecx, [ebp - 0x20]
push eax
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
lea ecx, [ebp - 0x54]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x439cc2
test ebx, 2
jne 0x439cc2
push 0
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x54]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x439cc2
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call edi
test eax, eax
je 0x439d00
lea ecx, [ebp - 0x20]
test ebx, 2
jne 0x439ced
sub esp, 8
call fcn.005dc190
mov ecx, eax
call fcn.005e1650
jmp 0x439cfa
push 0
call fcn.005dc190
push eax
call fcn.005771e0
mov bl, al
test bl, bl
je 0x439d24
push 1
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x48]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, al
test bl, bl
jne 0x439e7a
test dword [ebp + 0x10], 2
jne 0x439e44
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push 1
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x2c], xmm0
call fcn.005dc190
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc570
sub esp, 8
mov byte [ebp - 4], 5
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x60], xmm0
push 0
push 0
push 0
push 0
push 0x624388
call fcn.005dc190
push eax
push 0x629d60
lea ecx, [ebp - 0x20]
call fcn.005dc190
mov ecx, dword [ebp - 0x6c]
push eax
push str.__ReplaceFile__
lea ecx, [ecx + 0x1184]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x60]
call fcn.005dc520
push 0
mov edx, 0x14a
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.0058e5e0
push 0
push 0x20006
push str.HKLMSoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
call fcn.005d6a80
push 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.005dc190
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x30]
call fcn.005d5f20
test al, al
je 0x439e01
mov bl, 2
jmp 0x439e05
test bl, bl
je 0x439e16
push esi
push ecx
lea ecx, [ebp - 0x20]
call fcn.005dc190
mov ecx, eax
call fcn.005d74c0
push 3
lea ecx, [ebp - 0x48]
call fcn.005dc190
push eax
call fcn.005771e0
lea ecx, [ebp - 0x30]
call fcn.005d69e0
lea ecx, [ebp - 0x60]
call fcn.005dc430
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.005dc430
jmp 0x439e7a
lea ecx, [ebp - 0x48]
call fcn.005dc190
push eax
call edi
test eax, eax
je 0x439e7a
push 5
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x48]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
movzx ebx, bl
mov ecx, 2
cmovne ebx, ecx
lea ecx, [ebp - 0x54]
call fcn.005dc190
push eax
call edi
test eax, eax
je 0x439e99
push 3
lea ecx, [ebp - 0x54]
call fcn.005dc190
push eax
call fcn.005771e0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.005dc5e0
mov byte [ebp - 4], 8
test bl, bl
jne 0x439edd
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x624388
push dword [ebp - 0x64]
push str.__with__
push dword [ebp - 0x68]
push str.Failed_to_replace__
jmp 0x439f2f
cmp bl, 1
jne 0x439f07
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x624388
push dword [ebp - 0x64]
push str.__with__
push dword [ebp - 0x68]
push str.Successfully_replaced__
jmp 0x439f2f
cmp bl, 2
jne 0x439f37
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.__on_reboot
push dword [ebp - 0x64]
push str.__with__
push dword [ebp - 0x68]
push str.Successfully_scheduled_replacing__
lea ecx, [ebp - 0x2c]
call fcn.005dc200
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.005dc190
mov ecx, dword [ebp - 0x6c]
push eax
call fcn.0045a700
lea ecx, [ebp - 0x2c]
call fcn.005dc430
lea ecx, [ebp - 0x54]
call fcn.005dc430
lea ecx, [ebp - 0x48]
call fcn.005dc430
lea ecx, [ebp - 0x70]
call fcn.005d8100
lea ecx, [ebp - 0x20]
call fcn.005dc430
lea ecx, [ebp - 0x3c]
call fcn.005dc430
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 0xc