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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b860
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45e274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45e020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45e020
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00427440
test eax, eax
jne 0x4214aa
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 0x421496
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 0x42164f
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:_sourceebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d6f0
push eax
call fcn.0042d910
add esp, 0x10
call fcn.0041dc70
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42164f
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
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.004076f0
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 0x42156b
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 0x421521
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4215e3
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:_sourceebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d6f0
push eax
call fcn.0042d910
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 0x4215d4
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 0x42147d
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x421643
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:_sourceebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d6f0
push eax
call fcn.0042d910
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 [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
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 0x42168d
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 0x4216ad
add ebx, 0x104
jns 0x421670
push 0x80070057
call fcn.00403700
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042f9ba
add esp, 8
test eax, eax
js 0x4216a3
cmp eax, dword [esi - 8]
jg 0x4216a3
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 0x421737
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:_sourceebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d6f0
push eax
call fcn.0042d910
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 0x421728
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 0x42147d
call fcn.004060b0
add esp, 4
test eax, eax
je 0x421799
push eax
push str.SetLowFileSecurity_FAILED_error___i
push 3
push 3
push 0x73
push str.CInstActionDeployInstaller::DoAction
push str.e:_sourceebinstallerinstallerActionsInstActionDeployInstaller.h
lea ecx, [ebp - 0x24]
call fcn.0042d6f0
push eax
call fcn.0042d910
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 0x42178a
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 0x42147d
mov ecx, edi
call fcn.0041d8b0
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 0x4217c0
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 0x4217e3
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