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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4536
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x54b1b4]
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.0040ecd0
xor ebx, ebx
mov edx, 0x54c674
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040eef0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x451be0
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.00405fc0
test eax, eax
jne 0x451c6a
mov eax, dword [0x54eee0]
cmp eax, ebx
je 0x451c2c
cmp dword [eax + 8], 4
mov edi, eax
jl 0x451c2c
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, 0x347
call fcn.0042ef60
push edi
mov ecx, esi
call fcn.0042cbc0
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x451c42
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004ba3a4
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 0x451c63
mov eax, dword [ebp - 0x48]
push eax
call fcn.004ba3a4
add esp, 4
mov al, 1
jmp 0x452037
cmp dword [ebp - 0x38], ebx
je 0x451fc5
cmp dword [ebp - 0x1c], ebx
je 0x451fc5
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x451c88
lea eax, [ebp - 0x48]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x451fc5
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x451ca5
lea eax, [ebp - 0x2c]
push eax
call edi
test eax, eax
je 0x451fc5
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.004517c0
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 0x451d9a
mov dword [ebp - 0x84], ebx
add esi, dword [ebp - 0x84]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.00407f10
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
lea ebx, [ebp - 0x80]
call fcn.0044d860
mov eax, dword [ebp - 0x80]
add esp, 8
cmp dword [ebp - 0x6c], 8
jae 0x451d62
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 0x451d32
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 0x451eee
xor esi, esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], 0x64
mov dword [ebp - 0xb0], edi
jmp 0x451e06
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.00407f10
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
lea ebx, [ebp - 0x64]
call fcn.0044d860
mov ecx, dword [ebp - 0x64]
mov ebx, 8
add esp, 8
cmp dword [ebp - 0x50], ebx
jae 0x451e3e
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x9c]
cmp dword [esi + edx + 0x14], ebx
lea eax, [esi + edx]
jb 0x451e4f
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x451e9a
mov ecx, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x451e68
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x9c]
add eax, esi
cmp dword [eax + 0x14], ebx
jb 0x451e77
mov eax, dword [eax]
push ecx
push eax
push str.copy
push str.SetupSetupModule.cpp
mov edx, 0x365
mov esi, 2
mov eax, 0x54eee0
call fcn.0042bb60
add esp, 0x10
mov esi, dword [ebp - 0x8c]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x451ed2
mov eax, dword [ebp - 0x88]
xor edx, edx
div edi
mov edx, eax
sub edx, dword [ebp - 0xb4]
cmp edx, 1
jle 0x451ed2
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 0x451e00
push edi
push str.copy_file_over.count_d
push str.SetupSetupModule.cpp
mov edx, 0x371
mov esi, 4
mov eax, 0x54eee0
call fcn.0042bb60
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0x50], esi
jb 0x451f26
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004ba3a4
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 0x451f48
mov eax, dword [ebp - 0x80]
push eax
call fcn.004ba3a4
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 0x451f78
mov edi, dword [ebp - 0x98]
call fcn.0040cf70
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004ba3a4
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 0x451fae
mov edi, dword [ebp - 0xa8]
call fcn.0040cf70
mov eax, dword [ebp - 0xac]
push eax
call fcn.004ba3a4
add esp, 4
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
jmp 0x451c31
mov eax, dword [0x54eee0]
cmp eax, ebx
je 0x451ffe
cmp dword [eax + 8], 2
mov edi, eax
jl 0x451ffe
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, 0x34c
call fcn.0042ef60
push edi
mov ecx, esi
call fcn.0042cbc0
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x452014
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
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 0x452035
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
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.004ba3af
mov esp, ebp
pop ebp
ret