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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xffffffffffffffff
push 0x7c7726
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push ebx
push esi
push edi
mov eax, dword [0x89b044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp + 0x48], edi
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
lea ecx, [ebp + 0x5c]
push ecx
mov ecx, edi
call edx
mov eax, dword [ebp + 0x5c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x6757fe
push str.WebHistory
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x58], ebx
mov byte [ebp - 4], 1
call fcn.004068d0
push 1
lea ecx, [ebp + 0x50]
push ecx
lea edx, [ebp + 0x60]
push edx
mov byte [ebp - 4], 2
call fcn.00618a30
add esp, 0xc
mov eax, dword [ebp + 0x50]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x67577b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov edx, dword [edx]
lea eax, [ebp + 0x54]
push eax
mov ecx, edi
call edx
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x60]
push str._s_history.db
push ecx
mov byte [ebp - 4], 5
call fcn.004a23e0
mov eax, dword [ebp + 0x54]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x6757c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x60]
mov edx, dword [ebp + 0x5c]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp + 0x60]
push eax
call esi
test eax, eax
jne 0x67582b
mov eax, dword [ebp + 0x60]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6757fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x5c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x675824
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x675b18
lea ecx, [ebp + 0x20]
call fcn.00604620
mov ecx, dword [ebp + 0x60]
push ecx
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 6
call fcn.00607360
push str.SELECT_a.url__a.title__b.time_FROM_tb_urlinfo_a_LEFT_OUTER_JOIN_tb_urlhistory_b_ON_a.urlid__b.urlid
lea edx, [ebp + 8]
push edx
lea ecx, [ebp + 0x20]
call fcn.006069b0
mov byte [ebp - 4], 7
mov bl, 8
lea ebx, [ebx]
lea ecx, [ebp + 8]
call fcn.00605910
test al, al
jne 0x675aa1
lea ecx, [ebp + 0x30]
call fcn.00648bd0
push 0x7fc3f9
push 0x83096c
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00606dd0
lea ecx, [ebp - 0x110]
push 0xfde9
mov dword [ebp - 0x114], ecx
push eax
lea ecx, [ebp - 0x114]
call fcn.00580860
mov esi, dword [ebp - 0x114]
mov byte [ebp - 4], 9
test esi, esi
jne 0x6758bc
xor eax, eax
jmp 0x6758d0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6758c1
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp + 0x38]
call fcn.00406740
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
mov byte [ebp - 4], bl
cmp eax, edx
je 0x6758f6
push eax
call fcn.007238ab
add esp, 4
push 0x7fc3f9
push str.title
lea ecx, [ebp + 8]
call fcn.00606dd0
lea ecx, [ebp - 0x110]
push 0xfde9
mov dword [ebp - 0x114], ecx
push eax
lea ecx, [ebp - 0x114]
call fcn.00580860
mov esi, dword [ebp - 0x114]
mov byte [ebp - 4], 0xa
test esi, esi
jne 0x675937
xor eax, eax
jmp 0x67594f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x675940
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp + 0x34]
call fcn.00406740
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
mov byte [ebp - 4], bl
cmp eax, edx
je 0x675975
push eax
call fcn.007238ab
add esp, 4
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [ebp + 0x54]
push ecx
mov ecx, edi
mov dword [ebp + 0x40], 1
call edx
push eax
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xb
call fcn.00404210
mov eax, dword [ebp + 0x54]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6759b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x38]
push ecx
lea edx, [ebp + 0x2c]
push edx
call fcn.0067ffb0
add esp, 8
push eax
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00404210
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6759f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0x8156ec
lea ecx, [ebp + 8]
call fcn.00606cf0
push edx
push eax
lea ecx, [ebp + 0x4c]
push ecx
call fcn.00615e20
add esp, 0xc
push eax
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xd
call fcn.00404210
mov eax, dword [ebp + 0x4c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x675a44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x6c]
cmp dword [ecx], 0
je 0x675a5d
lea edx, [ebp + 0x30]
push edx
call fcn.00675090
test eax, eax
je 0x675b32
mov ecx, dword [ebp + 0x70]
mov edi, dword [ecx + 0x14]
mov edx, dword [edi + 4]
lea eax, [ebp + 0x30]
push eax
push edx
push edi
call fcn.00674c10
mov ecx, dword [ebp + 0x70]
push 1
mov esi, eax
call fcn.00674cb0
mov dword [edi + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [ebp + 0x58]
inc eax
cmp eax, dword [ebp + 0x78]
mov dword [ebp + 0x58], eax
jl 0x675b2f
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 7
call fcn.00648a90
lea ecx, [ebp + 0x20]
call fcn.00605000
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00605360
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 4
call fcn.006067f0
mov eax, dword [ebp + 0x60]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x675ae4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x5c]
xor edx, edx
cmp dword [ebp + 0x58], edx
mov dword [ebp - 4], 0xffffffff
setne dl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x675b16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x64
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 0x48]
lea ecx, [ebp + 8]
call fcn.00605960
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 7
call fcn.00648a90
jmp 0x675860