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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4558a4
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x47f060]
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
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x48277c]
add esp, 0xc
test eax, eax
jne 0x413edb
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x67c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x413ecd
mov ecx, eax
call fcn.004122b0
jmp 0x413ecf
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x48277c], eax
add eax, 0x90
cmp dword [eax + 0x14], 8
jb 0x413ee8
mov eax, dword [eax]
push 0x4616d0
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414497
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
mov dword [ebp - 0x67c], esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x45ec1c
mov word [ecx], ax
call fcn.00406c00
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], 0
mov word [ebp - 0x658], ax
cmp word [ebp - 0x628], ax
jne 0x413fae
xor ecx, ecx
jmp 0x413fc6
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413fb7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x658]
call fcn.00406c00
mov byte [ebp - 4], 4
push 1
lea eax, [ebp - 0x634]
push 0
push eax
lea edx, [ebp - 0x640]
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 5
call fcn.0042cf60
add esp, 0x24
mov byte [ebp - 4], 2
cmp dword [ebp - 0x644], 8
jb 0x41401c
push dword [ebp - 0x658]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [ebp - 0x634]
mov ebx, dword [ebp - 0x630]
xor eax, eax
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], 0
mov word [ebp - 0x658], ax
cmp edi, ebx
je 0x414220
lea ecx, [ecx]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov ebx, 0x614
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x41407d
mov esi, dword [edi]
jmp 0x41407f
mov esi, edi
lea ecx, [ebp - 0x218]
mov eax, ecx
mov edx, 0x104
sub esi, eax
mov edi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4140ae
movzx eax, word [esi + ecx]
test ax, ax
je 0x4140ae
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x414090
jmp 0x4140b2
test edx, edx
jne 0x4140b5
sub ecx, 2
xor eax, eax
push 0x206
push eax
mov word [ecx], ax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x48277c]
add esp, 0xc
test eax, eax
jne 0x41410f
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x67c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x414104
mov ecx, eax
call fcn.004122b0
jmp 0x414106
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x48277c], eax
cmp dword [eax + 0xa4], 8
lea esi, [eax + 0x90]
jb 0x414120
mov esi, dword [esi]
lea ecx, [ebp - 0x420]
mov eax, ecx
mov edx, 0x104
sub esi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x41414e
movzx eax, word [esi + ecx]
test ax, ax
je 0x41414e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x414130
jmp 0x414152
test edx, edx
jne 0x414155
sub ecx, 2
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x660], eax
mov word [ebp - 0x65c], ax
mov word [ecx], ax
movq qword [ebp - 0x678], xmm0
movq qword [ebp - 0x668], xmm0
mov dword [ebp - 0x662], eax
mov dword [ebp - 0x678], eax
mov dword [ebp - 0x65e], eax
movq qword [ebp - 0x670], xmm0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x670], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x66c], eax
lea eax, [ebp - 0x678]
push eax
mov word [ebp - 0x668], bx
mov dword [ebp - 0x674], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x4141ec
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push str.CInstaller::RestoreIgnoreFiles__CopyFolder_succeed:_src___s__dst___s_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
jmp 0x414209
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push str.CInstaller::RestoreIgnoreFiles__CopyFolder_failed:_src___s__dst___s__err___d_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0x10
mov ebx, dword [ebp - 0x630]
add edi, 0x18
cmp edi, ebx
jne 0x414050
mov edi, dword [ebp - 0x634]
mov eax, dword [ebp - 0x63c]
mov esi, dword [ebp - 0x640]
mov dword [ebp - 0x67c], eax
cmp esi, eax
je 0x4143d1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
jb 0x41424a
mov eax, dword [esi]
jmp 0x41424c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], 0
mov word [ebp - 0x658], ax
cmp word [edx], ax
jne 0x41427b
xor ecx, ecx
jmp 0x41428f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414280
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x658]
call fcn.00406c00
xor eax, eax
push 0x206
mov byte [ebp - 4], 7
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x48277c]
add esp, 0xc
cmp dword [ebp - 0x644], 8
lea edi, [ebp - 0x658]
cmovae edi, dword [ebp - 0x658]
test eax, eax
jne 0x414307
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x67c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x414300
mov ecx, eax
call fcn.004122b0
jmp 0x414302
xor eax, eax
mov dword [0x48277c], eax
add eax, 0x90
cmp dword [eax + 0x14], 8
jb 0x414314
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esi + 0x14], 8
jb 0x41432d
mov eax, dword [esi]
jmp 0x41432f
mov eax, esi
push 0
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x414367
cmp dword [esi + 0x14], 8
jb 0x41434d
mov eax, dword [esi]
jmp 0x41434f
mov eax, esi
lea ecx, [ebp - 0x218]
push ecx
push eax
push str.CInstaller::RestoreIgnoreFiles__CopyFile_succeed:_src___s__dst___s_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0xc
jmp 0x41438c
call ebx
cmp dword [esi + 0x14], 8
jb 0x414373
mov ecx, dword [esi]
jmp 0x414375
mov ecx, esi
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push str.CInstaller::RestoreIgnoreFiles__CopyFile_failed:_src___s__dst___s__err___d_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x644], 8
jb 0x4143a8
push dword [ebp - 0x658]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x63c]
add esi, 0x18
mov dword [ebp - 0x67c], eax
cmp esi, eax
jne 0x414240
mov ebx, dword [ebp - 0x630]
mov edi, dword [ebp - 0x634]
mov esi, dword [ebp - 0x640]
test esi, esi
je 0x41444f
cmp esi, eax
je 0x414417
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x4143f7
push dword [esi]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x67c]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x18
cmp esi, eax
jne 0x4143e0
mov esi, dword [ebp - 0x640]
push esi
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
call esi
mov ebx, dword [ebp - 0x630]
mov edi, dword [ebp - 0x634]
add esp, 4
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
jmp 0x414455
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x414497
cmp edi, ebx
je 0x414491
cmp dword [edi + 0x14], 8
jb 0x414471
push dword [edi]
call esi
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
add edi, 0x18
cmp edi, ebx
jne 0x414464
mov edi, dword [ebp - 0x634]
push edi
call esi
add esp, 4
mov eax, dword [0x483120]
test al, 1
jne 0x414576
or eax, 1
push ecx
mov ecx, 0x483090
mov dword [0x483120], eax
call fcn.004139f0
xor eax, eax
push 0x45aed0
mov dword [0x4830a4], 7
mov dword [0x4830a0], 0
mov word [0x483090], ax
mov dword [0x4830a8], eax
mov dword [0x4830ac], eax
mov dword [0x4830b0], eax
mov dword [0x4830b4], eax
mov dword [0x4830b8], eax
mov dword [0x4830bc], eax
mov dword [0x4830c0], eax
mov dword [0x4830c4], eax
mov dword [0x4830c8], eax
mov dword [0x4830cc], eax
mov dword [0x4830d0], eax
mov dword [0x4830d4], eax
mov dword [0x4830d8], eax
mov dword [0x4830dc], eax
mov dword [0x4830e0], eax
mov dword [0x4830e4], eax
mov dword [0x4830e8], eax
mov dword [0x4830ec], eax
mov dword [0x4830f0], eax
mov dword [0x4830f4], eax
mov dword [0x4830f8], eax
mov dword [0x4830fc], eax
mov dword [0x483100], eax
mov dword [0x483104], eax
mov dword [0x483108], eax
mov dword [0x48310c], eax
mov dword [0x483110], eax
mov dword [0x483114], eax
mov dword [0x483118], eax
mov dword [0x48311c], eax
call fcn.004521b7
add esp, 4
mov ecx, 0x483090
call fcn.00417410
push str.CInstaller::RestoreIgnoreFiles__DeleteIgnoreFiles:_end_
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 4
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.00452076
mov esp, ebp
pop ebp
ret