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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4443f4
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x467060]
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 [0x469f34]
add esp, 0xc
test eax, eax
jne 0x40e13b
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x65c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40e12d
mov ecx, eax
call fcn.0040dc50
jmp 0x40e12f
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x469f34], eax
add eax, 0x78
cmp dword [eax + 0x14], 8
jb 0x40e146
mov eax, dword [eax]
push 0x44c718
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 0x40e693
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 - 0x65c], esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x44acac
mov word [ecx], ax
call fcn.00405570
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 0x40e20c
xor ecx, ecx
jmp 0x40e224
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e215
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x658]
call fcn.00405570
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.0041f590
add esp, 0x24
mov byte [ebp - 4], 2
cmp dword [ebp - 0x644], 8
jb 0x40e27a
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 0x40e421
jmp 0x40e2b0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40e2d8
mov esi, dword [edi]
jmp 0x40e2da
mov esi, edi
lea ecx, [ebp - 0x218]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40e30e
movzx eax, word [esi + ecx]
test ax, ax
je 0x40e30e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x40e2f0
jmp 0x40e312
test edx, edx
jne 0x40e315
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 [0x469f34]
add esp, 0xc
test eax, eax
jne 0x40e36f
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x65c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40e364
mov ecx, eax
call fcn.0040dc50
jmp 0x40e366
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x469f34], eax
cmp dword [eax + 0x8c], 8
lea esi, [eax + 0x78]
jb 0x40e37d
mov esi, dword [esi]
lea ecx, [ebp - 0x420]
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40e3ae
movzx eax, word [esi + ecx]
test ax, ax
je 0x40e3ae
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x40e390
jmp 0x40e3b2
test edx, edx
jne 0x40e3b5
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x218]
call fcn.0041cd20
test eax, eax
jne 0x40e3ed
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 0x40e40a
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 0x40e2b0
mov edi, dword [ebp - 0x634]
mov eax, dword [ebp - 0x63c]
mov esi, dword [ebp - 0x640]
mov dword [ebp - 0x65c], eax
cmp esi, eax
je 0x40e5d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
jb 0x40e44b
mov eax, dword [esi]
jmp 0x40e44d
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 0x40e47c
xor ecx, ecx
jmp 0x40e490
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e481
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x658]
call fcn.00405570
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 [0x469f34]
add esp, 0xc
cmp dword [ebp - 0x644], 8
lea edi, [ebp - 0x658]
cmovae edi, dword [ebp - 0x658]
test eax, eax
jne 0x40e508
push 0xe4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x65c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x40e501
mov ecx, eax
call fcn.0040dc50
jmp 0x40e503
xor eax, eax
mov dword [0x469f34], eax
add eax, 0x78
cmp dword [eax + 0x14], 8
jb 0x40e513
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 0x40e52c
mov eax, dword [esi]
jmp 0x40e52e
mov eax, esi
push 0
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40e566
cmp dword [esi + 0x14], 8
jb 0x40e54c
mov eax, dword [esi]
jmp 0x40e54e
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 0x40e58b
call ebx
cmp dword [esi + 0x14], 8
jb 0x40e572
mov ecx, dword [esi]
jmp 0x40e574
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 0x40e5a7
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 - 0x65c], eax
cmp esi, eax
jne 0x40e441
mov ebx, dword [ebp - 0x630]
mov edi, dword [ebp - 0x634]
mov esi, dword [ebp - 0x640]
test esi, esi
je 0x40e647
cmp esi, eax
je 0x40e60f
cmp dword [esi + 0x14], 8
jb 0x40e5ef
push dword [esi]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x65c]
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 0x40e5d8
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 0x40e64d
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40e693
cmp edi, ebx
je 0x40e68d
lea esp, [esp]
cmp dword [edi + 0x14], 8
jb 0x40e66d
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 0x40e660
mov edi, dword [ebp - 0x634]
push edi
call esi
add esp, 4
mov eax, dword [0x46a8e0]
test al, 1
jne 0x40e772
or eax, 1
push ecx
mov ecx, 0x46a850
mov dword [0x46a8e0], eax
call fcn.0040ed40
xor eax, eax
push 0x4486f0
mov dword [0x46a864], 7
mov dword [0x46a860], 0
mov word [0x46a850], ax
mov dword [0x46a868], eax
mov dword [0x46a86c], eax
mov dword [0x46a870], eax
mov dword [0x46a874], eax
mov dword [0x46a878], eax
mov dword [0x46a87c], eax
mov dword [0x46a880], eax
mov dword [0x46a884], eax
mov dword [0x46a888], eax
mov dword [0x46a88c], eax
mov dword [0x46a890], eax
mov dword [0x46a894], eax
mov dword [0x46a898], eax
mov dword [0x46a89c], eax
mov dword [0x46a8a0], eax
mov dword [0x46a8a4], eax
mov dword [0x46a8a8], eax
mov dword [0x46a8ac], eax
mov dword [0x46a8b0], eax
mov dword [0x46a8b4], eax
mov dword [0x46a8b8], eax
mov dword [0x46a8bc], eax
mov dword [0x46a8c0], eax
mov dword [0x46a8c4], eax
mov dword [0x46a8c8], eax
mov dword [0x46a8cc], eax
mov dword [0x46a8d0], eax
mov dword [0x46a8d4], eax
mov dword [0x46a8d8], eax
mov dword [0x46a8dc], eax
call fcn.00441527
add esp, 4
mov ecx, 0x46a850
call fcn.00411220
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.004413e6
mov esp, ebp
pop ebp
ret