Function at 0x40e360
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1028
call fcn.0041ac20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
push ebx
push esi
mov ecx, dword [eax]
push edi
mov dword [ebp - 0x10], esp
mov edx, dword [ecx - 8]
test edx, edx
je 0x40e6f7
push eax
lea ecx, [ebp - 0x14]
call fcn.0042fca6
push 1
push 0x5c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0042a480
lea edx, [ebp - 0x18]
push 1
push edx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042a732
mov esi, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40e3f7
test cl, cl
je 0x40e3f3
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40e3f7
add eax, 2
add esi, 2
test cl, cl
jne 0x40e3cf
xor eax, eax
jmp 0x40e3fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [ebp - 0x18]
setne bl
call fcn.0042ff31
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0042ff31
test bl, bl
je 0x40e426
push 0x44a328
lea ecx, [ebp - 0x14]
call fcn.004302c1
lea eax, [ebp - 0x14]
push str.localstore.rdf
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.0043017a
lea edx, [ebp + 8]
push str..clean
lea eax, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 2
call fcn.0043017a
push eax
mov byte [ebp - 4], 3
call fcn.00402c10
add esp, 4
lea ecx, [ebp - 0x18]
mov bl, al
mov byte [ebp - 4], 2
call fcn.0042ff31
test bl, bl
je 0x40e496
lea ecx, [ebp + 8]
push str..clean
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.0043017a
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x18]
jmp 0x40e6d7
mov edx, dword [0x44cad0]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x14]
push str.newlocalstore.rdf
lea ecx, [ebp - 0x24]
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.0043017a
mov edx, dword [0x44cad0]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
push 0x44b07c
push eax
mov byte [ebp - 4], 6
call fcn.0041ac06
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x18], edi
je 0x40e6b8
mov ecx, dword [ebp - 0x24]
push 0x44b598
push ecx
call fcn.0041ac06
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e505
push edi
call fcn.0041aaf6
add esp, 4
jmp 0x40e6b8
push edi
lea edx, [ebp - 0x1038]
push 0x1000
push edx
mov bl, 1
call fcn.0041ab73
add esp, 0xc
test eax, eax
je 0x40e5cd
lea eax, [ebp - 0x1038]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0043006e
push str._RDF:Seq_about_nc:urlbar_history__
lea ecx, [ebp - 0x1c]
call fcn.0042a848
test eax, eax
jl 0x40e560
lea ecx, [ebp - 0x1038]
push esi
push ecx
mov byte [ebp + eax - 0x1038], 0
call fcn.0041acd0
add esp, 8
xor bl, bl
jmp 0x40e5b0
push str.__RDF:Seq_
lea ecx, [ebp - 0x1c]
call fcn.0042a848
mov edx, eax
test edx, edx
jl 0x40e59c
mov edi, str.__RDF:Seq_
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
lea edx, [ebp + ecx - 0x1038]
push edx
call fcn.0041acd0
mov edi, dword [ebp - 0x18]
add esp, 8
mov bl, 1
jmp 0x40e5b0
test bl, bl
je 0x40e5b0
lea eax, [ebp - 0x1038]
push esi
push eax
call fcn.0041acd0
add esp, 8
push edi
lea ecx, [ebp - 0x1038]
push 0x1000
push ecx
call fcn.0041ab73
add esp, 0xc
test eax, eax
jne 0x40e524
push edi
call fcn.0041aaf6
push esi
call fcn.0041aaf6
add esp, 8
test eax, eax
jne 0x40e6b8
lea edx, [ebp - 0x14]
push str.oldlocalstore.rdf
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.0043017a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00401a10
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 4], 8
call fcn.0043136d
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
push ecx
push edx
call fcn.0043136d
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xb
call fcn.00401a10
jmp 0x40e6a9
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 6
call fcn.0042ff31
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0042ff31
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0042ff31
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0042ff31
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0042ff31
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ff31
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4