Function at 0x452860
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f56d6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x54c1b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [ebp - 0x48]
mov dword [ebp - 0x8c], esi
call fcn.0040f0b0
xor ebx, ebx
mov edx, 0x54d674
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040f2d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4528c0
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.00406090
test eax, eax
jne 0x45294a
mov eax, dword [0x54fee0]
cmp eax, ebx
je 0x45290c
cmp dword [eax + 8], 4
mov edi, eax
jl 0x45290c
push str.SetupSetupModule.cpp
push 4
push ecx
mov eax, esp
mov dword [ebp - 0x8c], esp
push eax
mov ecx, str.no_copy_source_dir__destdir
mov esi, 0x325
call fcn.0042fa10
push edi
mov ecx, esi
call fcn.0042d670
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x452922
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004bb4d8
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], esi
jb 0x452943
mov eax, dword [ebp - 0x48]
push eax
call fcn.004bb4d8
add esp, 4
mov al, 1
jmp 0x452d17
cmp dword [ebp - 0x38], ebx
je 0x452ca5
cmp dword [ebp - 0x1c], ebx
je 0x452ca5
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x452968
lea eax, [ebp - 0x48]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x452ca5
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x452985
lea eax, [ebp - 0x2c]
push eax
call edi
test eax, eax
je 0x452ca5
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
push 1
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004524a0
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xac]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x452a7a
mov dword [ebp - 0x84], ebx
add esi, dword [ebp - 0x84]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.004082e0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
lea ebx, [ebp - 0x80]
call fcn.0044e750
mov eax, dword [ebp - 0x80]
add esp, 8
cmp dword [ebp - 0x6c], 8
jae 0x452a42
mov eax, ebx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov ecx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xac]
add dword [ebp - 0x84], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
xor ebx, ebx
cmp edi, ecx
jb 0x452a12
xor edx, edx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x98]
sub ecx, dword [ebp - 0x9c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x452bce
xor esi, esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], 0x64
mov dword [ebp - 0xb0], edi
jmp 0x452ae6
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x9c]
push 0xffffffffffffffff
lea ecx, [esi + eax]
push ebx
push ecx
lea ecx, [ebp - 0x64]
call fcn.004082e0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
lea ebx, [ebp - 0x64]
call fcn.0044e750
mov ecx, dword [ebp - 0x64]
mov ebx, 8
add esp, 8
cmp dword [ebp - 0x50], ebx
jae 0x452b1e
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x9c]
cmp dword [esi + edx + 0x14], ebx
lea eax, [esi + edx]
jb 0x452b2f
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x452b7a
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x452b48
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x9c]
add eax, esi
cmp dword [eax + 0x14], ebx
jb 0x452b57
mov eax, dword [eax]
push ecx
push eax
push str.copy
push str.SetupSetupModule.cpp
mov edx, 0x343
mov esi, 2
mov eax, 0x54fee0
call fcn.0042c610
add esp, 0x10
mov esi, dword [ebp - 0x8c]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x452bb2
mov eax, dword [ebp - 0x88]
xor edx, edx
div edi
mov edx, eax
sub edx, dword [ebp - 0xb4]
cmp edx, 1
jle 0x452bb2
push eax
mov dword [ebp - 0xb4], eax
mov eax, dword [esi + 0x10]
push 5
push eax
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
add dword [ebp - 0x84], 0x1c
add dword [ebp - 0x88], 0x64
xor ebx, ebx
dec dword [ebp - 0xb0]
jne 0x452ae0
push edi
push str.copy_file_over.count_d
push str.SetupSetupModule.cpp
mov edx, 0x34f
mov esi, 4
mov eax, 0x54fee0
call fcn.0042c610
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0x50], esi
jb 0x452c06
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004bb4d8
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x6c], esi
jb 0x452c28
mov eax, dword [ebp - 0x80]
push eax
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0x9c]
xor ecx, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp eax, ebx
je 0x452c58
mov edi, dword [ebp - 0x98]
call fcn.0040d350
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004bb4d8
add esp, 4
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
cmp eax, ebx
je 0x452c8e
mov edi, dword [ebp - 0xa8]
call fcn.0040d350
mov eax, dword [ebp - 0xac]
push eax
call fcn.004bb4d8
add esp, 4
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
jmp 0x452911
mov eax, dword [0x54fee0]
cmp eax, ebx
je 0x452cde
cmp dword [eax + 8], 2
mov edi, eax
jl 0x452cde
push str.SetupSetupModule.cpp
push 2
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push ecx
mov ecx, str.dir_is_not_exist.
mov esi, 0x32a
call fcn.0042fa10
push edi
mov ecx, esi
call fcn.0042d670
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x452cf4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x452d15
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004bb4d8
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret