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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45d020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d020
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00427170
test eax, eax
jne 0x4215ba
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4215a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
push 0xd
push str.installer.exe
lea ebx, [ebp - 0x10]
call fcn.00402e80
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42175f
push str.Installer_exists__will_be_unregistered_and_changed_with_new_one
push 1
push 3
push 0x45
push str.CInstActionDeployInstaller::DoAction
push str.e:_source_testebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d360
push eax
call fcn.0042d580
add esp, 0x10
call fcn.0041dd90
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42175f
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
xor esi, esi
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
mov ebx, str.._i.bak
call fcn.00407650
mov byte [ebp - 4], 2
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004032e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 0x14
inc esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42167b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421631
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4216f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push edi
push str.Error_renaming_installer____s______s___error___i
push 3
push 3
push 0x58
push str.CInstActionDeployInstaller::DoAction
push str.e:_source_testebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d360
push eax
call fcn.0042d580
lea eax, [ebx - 0x10]
add esp, 0x1c
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4216e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x42158d
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x421753
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MOVEFILE_DELAY_UNTIL_REBOOT_error___i
push 3
push 3
push 0x5e
push str.CInstActionDeployInstaller::DoAction
push str.e:_source_testebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d360
push eax
call fcn.0042d580
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.00403740
lea ecx, [ebp - 0x10]
call fcn.00403740
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 - 0x14]
mov byte [ebp - 4], 0
call fcn.00403740
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
mov ebx, 0x105
mov edi, edi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x42179d
push ebx
lea ecx, [ebp - 0x14]
call fcn.004035c0
mov esi, dword [ebp - 0x14]
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jne 0x4217bd
add ebx, 0x104
jns 0x421780
push 0x80070057
call fcn.00403700
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f686
add esp, 8
test eax, eax
js 0x4217b3
cmp eax, dword [esi - 8]
jg 0x4217b3
xor ecx, ecx
push ecx
push edi
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
test eax, eax
jne 0x421847
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Copying_installer_error___x__src_s__dst_s
push 3
push 3
push 0x6b
push str.CInstActionDeployInstaller::DoAction
push str.e:_source_testebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d360
push eax
call fcn.0042d580
add esi, 0xfffffff0
add esp, 0x1c
mov byte [ebp - 4], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x421838
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x42158d
call fcn.00406030
add esp, 4
test eax, eax
je 0x4218a9
push eax
push str.SetLowFileSecurity_FAILED_error___i
push 3
push 3
push 0x73
push str.CInstActionDeployInstaller::DoAction
push str.e:_source_testebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d360
push eax
call fcn.0042d580
add esi, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42189a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x42158d
mov ecx, edi
call fcn.0041d9d0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4218d0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4218f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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