Function at 0x445800
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ec2d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44586a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.418_tKFuncAux::CopyFileW_torigin_file_do_not_exist__error_code_is:__lu
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4458a1
push str.424_tKFuncAux::CopyFileW_tNewFileName_is_empty
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x4459ae
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x445a86
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test edi, 0xffff0000
jne 0x4458e2
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.00429d90
jmp 0x445900
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4458e7
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0042a060
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
call fcn.00448aa0
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [esi - 0xc], 0
lea ebx, [esi - 0x10]
jne 0x44593d
push str.434_tKFuncAux::CopyFileW_tnew_file_path_is_empty_after_path_remove_file_spec
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x10
jmp 0x445972
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44599f
push esi
call fcn.00445aa0
add esp, 4
test eax, eax
jne 0x44599f
push esi
push str.442_tKFuncAux::CopyFileW_tcreate_deep_directory_filed__path_is:__ws
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x445a5b
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004296c0
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push edi
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x445a6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.451_tKFuncAux::CopyFileW_tcopy_file_failed__error_code_is:__lu
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x445a5b
lea ecx, [ebp - 0x10]
call fcn.0042a9e0
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push str._s_d__x
push eax
call fcn.0042c720
mov esi, dword [ebp - 0x10]
push esi
push edi
call fcn.0056b9b4
add esp, 0x18
test eax, eax
jne 0x445a53
push eax
push edi
push dword [ebp + 8]
call ebx
push 4
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x10]
call fcn.004296c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
call fcn.004296c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3