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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
xor ebx, ebx
push 0x1a
pop edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call fcn.00414891
mov edi, 0x41a58c
lea ecx, [ebp - 0x1c]
push edi
call fcn.004034f3
push 8
pop edx
lea ecx, [ebp - 0xc]
call fcn.00403700
push eax
lea ecx, [ebp - 0x1c]
call fcn.004034b6
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
mov esi, str..tmp
lea ecx, [ebp - 0x1c]
push esi
call fcn.004034f3
push 0x1a
pop edx
lea ecx, [ebp - 0x20]
call fcn.00414891
push edi
lea ecx, [ebp - 0x20]
call fcn.004034f3
push 8
pop edx
lea ecx, [ebp - 0xc]
call fcn.00403700
push eax
lea ecx, [ebp - 0x20]
call fcn.004034b6
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
push esi
lea ecx, [ebp - 0x20]
call fcn.004034f3
push 0x1c
pop edx
lea ecx, [ebp - 0xc]
call fcn.00414891
push eax
lea ecx, [ebp - 0x10]
call fcn.004035de
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004034f3
push 0x1c
pop edx
lea ecx, [ebp + 8]
call fcn.00414891
push eax
lea ecx, [ebp - 0x18]
call fcn.004035de
mov ecx, dword [ebp + 8]
call fcn.004068b7
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.004034f3
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x40c858
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c858
mov eax, dword [ebp - 0x10]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40c858
push ebx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40c858
mov eax, ebx
mov dword [ebp + 8], eax
test esi, esi
je 0x40c758
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406886
push esi
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x40]
mov dword [ebp - 0x30], ecx
mov ecx, ebx
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x40c7d8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ebp + 8]
push eax
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
mov ecx, ebx
call fcn.00406875
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
push ecx
push ecx
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
push eax
push dword [ebp + 8]
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea ecx, [ebp - 0xc]
call fcn.004037f9
push eax
lea ecx, [ebp + 0xc]
call fcn.00403881
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
mov ecx, ebx
call fcn.004068b7
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov ebx, eax
call fcn.004068b7
test ebx, ebx
je 0x40c887
push ecx
mov eax, esp
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
test esi, esi
je 0x40c822
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0xc]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
mov eax, esp
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
test edi, edi
je 0x40c852
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0xc]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
pop ecx
mov eax, ebx
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov ecx, edi
call fcn.004068b7
mov ecx, esi
call fcn.004068b7
mov ecx, dword [ebp - 0x18]
call fcn.004068b7
mov ecx, dword [ebp + 8]
call fcn.004068b7
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x3c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ebx
call fcn.00411497
add esp, 0x10
mov dword [ebp - 0xc], 1
test eax, eax
je 0x40ccb2
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push ebx
push ecx
push 0xffffffffffffffff
mov eax, dword [eax + 0x44]
push str.select_host_key__path__name__encrypted_value__expires_utc__is_httponly__samesite__is_secure_from_cookies
push dword [ebp - 0x2c]
call eax
add esp, 0x14
test eax, eax
jne 0x40ccb2
mov ecx, 0x61a5c
call fcn.0040698f
mov ecx, 0x270f
test eax, eax
je 0x40c90a
lea edx, [eax + 4]
mov dword [eax], ecx
mov eax, edx
mov dword [eax], ebx
lea eax, [eax + 0x28]
mov dword [eax - 0x24], ebx
mov dword [eax - 0x20], ebx
mov dword [eax - 0x1c], ebx
sub ecx, 1
jne 0x40c8ef
mov dword [0x420730], edx
jmp 0x40c910
mov dword [0x420730], ebx
mov eax, dword [ebp - 0x14]
push dword [ebp - 8]
mov dword [0x420734], ebx
mov eax, dword [eax + 0x60]
call eax
pop ecx
cmp eax, 0x64
jne 0x40cbe2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0x4c]
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0xc], ebx
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40c96a
push eax
lea ecx, [ebp - 0x50]
call fcn.004037f9
push eax
lea ecx, [ebp - 0x28]
call fcn.00403881
mov ecx, dword [ebp - 0x50]
call fcn.004068b7
mov eax, dword [edi + 0x4c]
push 1
push dword [ebp - 8]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40c995
push eax
lea ecx, [ebp - 0x54]
call fcn.004037f9
push eax
lea ecx, [ebp - 0x24]
call fcn.00403881
mov ecx, dword [ebp - 0x54]
call fcn.004068b7
mov eax, dword [edi + 0x4c]
push 2
push dword [ebp - 8]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40c9c0
push eax
lea ecx, [ebp - 0x58]
call fcn.004037f9
push eax
lea ecx, [ebp - 0x10]
call fcn.00403881
mov ecx, dword [ebp - 0x58]
call fcn.004068b7
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
push 3
push dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0x78]
call eax
mov ecx, dword [edi + 0x70]
mov ebx, eax
push 3
push dword [ebp - 8]
call ecx
add esp, 4
mov edx, ebx
mov ecx, eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0041154b
add esp, 0x14
test eax, eax
jne 0x40ca06
xor ecx, ecx
call fcn.004068b7
xor ecx, ecx
jmp 0x40ca1b
push eax
lea ecx, [ebp - 0x5c]
call fcn.004037f9
push eax
lea ecx, [ebp + 0xc]
call fcn.00403881
mov ecx, dword [ebp - 0x5c]
call fcn.004068b7
mov eax, dword [edi + 0x54]
push 4
push dword [ebp - 8]
call eax
mov ecx, dword [edi + 0x50]
push 5
push dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
call ecx
mov ecx, dword [edi + 0x50]
push 6
push dword [ebp - 8]
mov dword [ebp - 0x60], eax
call ecx
mov ecx, dword [edi + 0x50]
push 7
push dword [ebp - 8]
mov dword [ebp - 0x64], eax
call ecx
mov dword [ebp - 0x68], eax
add esp, 0x20
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40ca68
push eax
call esi
test eax, eax
jg 0x40ca7e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40cba8
push eax
call esi
test eax, eax
jle 0x40cba5
mov eax, dword [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [ebp - 0x94], xmm0
test eax, eax
je 0x40cabd
push eax
call esi
test eax, eax
jle 0x40cabd
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x94]
call fcn.004035de
mov ecx, dword [ebp - 0x44]
call fcn.004068b7
xor ebx, ebx
mov dword [ebp - 0x44], ebx
jmp 0x40cabf
xor ebx, ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40caf0
push eax
call esi
test eax, eax
jle 0x40caf0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x24]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x90]
call fcn.004035de
mov ecx, dword [ebp - 0x48]
call fcn.004068b7
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40cb21
push eax
call esi
test eax, eax
jle 0x40cb21
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x8c]
call fcn.004035de
mov ecx, dword [ebp - 0x4c]
call fcn.004068b7
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40cb52
push eax
call esi
test eax, eax
je 0x40cb52
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0xc]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x88]
call fcn.004035de
mov ecx, dword [ebp - 0x30]
call fcn.004068b7
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x74], eax
mov eax, dword [0x420734]
cmp eax, 0x270f
je 0x40cb9a
lea ecx, [ebp - 0x94]
push ecx
imul ecx, eax, 0x28
add ecx, dword [0x420730]
call fcn.0040cd2b
inc dword [0x420734]
lea ecx, [ebp - 0x94]
call fcn.00402900
mov eax, dword [ebp + 0xc]
mov ecx, eax
call fcn.004068b7
mov ecx, dword [ebp - 0x10]
call fcn.004068b7
mov ecx, dword [ebp - 0x24]
call fcn.004068b7
mov ecx, dword [ebp - 0x28]
call fcn.004068b7
push dword [ebp - 8]
mov eax, dword [edi + 0x60]
call eax
pop ecx
push 0
pop ebx
cmp eax, 0x64
je 0x40c934
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
cmp eax, 0x65
jne 0x40cc33
mov eax, dword [ebp - 0x14]
push dword [ebp - 8]
call dword [eax + 0x7c]
pop ecx
push dword [ebp - 0x2c]
call dword [0x420944]
mov eax, esp
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
test esi, esi
je 0x40cc25
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0xc]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
xor eax, eax
pop ecx
inc eax
jmp 0x40c85a
test eax, eax
je 0x40ccb2
push ecx
mov eax, esp
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
test esi, esi
je 0x40cc63
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0xc]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
mov eax, esp
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
test edi, edi
je 0x40cc93
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0xc]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
mov eax, dword [ebp - 0x14]
pop ecx
push dword [ebp - 8]
call dword [eax + 0x7c]
pop ecx
push dword [ebp - 0x2c]
call dword [0x420944]
pop ecx
jmp 0x40c85c
mov eax, dword [ebp - 0x14]
push dword [ebp - 8]
call dword [eax + 0x7c]
pop ecx
push dword [ebp - 0x2c]
call dword [0x420944]
mov eax, esp
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
test esi, esi
je 0x40ccf0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0xc]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
mov eax, esp
mov dword [ebp + 0xc], eax
mov dword [eax], ebx
test edi, edi
je 0x40cd20
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0xc]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
pop ecx
jmp 0x40c85f