Function at 0x422aec
Capabilities:
Copy file
Reference sql statements

Disassembly:
push ebp
sub esp, 0x64
lea ebp, [esp - 4]
mov eax, dword [0x50e7dc]
xor eax, ebp
mov dword [ebp + 0x64], eax
push 0x240
mov eax, 0x4c7be3
call fcn.0049f542
mov eax, dword [ebp + 0x70]
mov edi, ecx
push str.CChromeBrowser::SearchDB___start
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x28], eax
call fcn.00404bd0
lea eax, [ebp + 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004017f5
or dword [ebp - 4], 0xffffffff
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x48]
call fcn.004058b3
cmp edi, ebx
jne 0x422b8b
push str.CChromeBrowser::SearchDB___CChromeSearchProvider_is_NULL.
lea ecx, [ebp + 0x48]
call fcn.00404bd0
lea eax, [ebp + 0x48]
push eax
mov dword [ebp - 4], esi
call fcn.004017f5
pop ecx
push ebx
push esi
lea ecx, [ebp + 0x48]
call fcn.004058b3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.0049f533
add ebp, 0x68
leave
ret 8
lea eax, [ebp]
push str.temp
push eax
call fcn.0040479d
pop ecx
pop ecx
mov dword [ebp - 4], 2
cmp dword [eax + 0x18], 8
jb 0x422bad
mov eax, dword [eax + 4]
jmp 0x422bb0
add eax, 4
push 3
push eax
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push eax
mov dword [ebp - 0xc8], ecx
call fcn.004058fe
mov byte [ebp - 4], 3
push dword [ebp - 0xc8]
lea ecx, [ebp + 0x2c]
call fcn.00404922
lea eax, [ebp - 0xc4]
cmp dword [ebp - 0xc8], eax
je 0x422bf7
push dword [ebp - 0xc8]
call fcn.0049f900
pop ecx
push ebx
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 6
call fcn.004058b3
push str.ichcop
lea eax, [ebp + 0x2c]
push eax
call fcn.0041c045
cmp dword [ebp + 0x44], 0x10
mov ecx, dword [ebp + 0x30]
jae 0x422c1f
lea ecx, [ebp + 0x30]
mov esi, dword [ebp + 0x28]
add esi, 0x20
cmp dword [esi + 0x18], 0x10
jb 0x422c30
mov eax, dword [esi + 4]
jmp 0x422c33
lea eax, [esi + 4]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp + 0x28]
cmp byte [ecx + 0x3d], bl
je 0x422c7e
cmp eax, ebx
jne 0x422c7e
push str.CChromeBrowser::SearchDB___Chrome_is_running.
lea ecx, [ebp + 0x48]
call fcn.00404bd0
lea eax, [ebp + 0x48]
push eax
mov byte [ebp - 4], 7
call fcn.004017f5
pop ecx
push ebx
push 1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 6
call fcn.004058b3
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp + 0x2c]
call fcn.00404d71
cmp dword [ebp + 0x44], 0x10
mov eax, dword [ebp + 0x30]
jae 0x422c8a
lea eax, [ebp + 0x30]
lea ecx, [ebp + 0x28]
push ecx
push eax
call fcn.00470307
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x422cd4
push str.CChromeBrowser::SearchDB___sqlite3_open
lea ecx, [ebp + 0x48]
call fcn.00404bd0
lea eax, [ebp + 0x48]
push esi
push eax
mov byte [ebp - 4], 8
call fcn.004018c5
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp + 0x48]
call fcn.004058b3
push ebx
push 1
lea ecx, [ebp + 0x2c]
call fcn.00404ec6
jmp 0x422b6a
mov eax, dword [0x511110]
mov ecx, 0x511110
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0x24], esi
cmp dword [ebp + 0x74], ebx
mov byte [ebp - 4], 9
jge 0x422d66
push ebx
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x60], 0xf
call fcn.00405a99
lea edx, [ebp + 0x48]
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.004247d3
test eax, eax
je 0x422d33
push dword [ebp + 0x28]
call fcn.0046f495
pop ecx
push ebx
push 1
lea ecx, [ebp + 0x48]
call fcn.00404ec6
lea ecx, [esi - 0x10]
call fcn.00401713
push 0x19
pop esi
jmp 0x422cc4
cmp dword [ebp + 0x60], 0x10
mov eax, dword [ebp + 0x4c]
jae 0x422d3f
lea eax, [ebp + 0x4c]
push eax
push str.keywords
push str.SELECT__FROM__s_WHERE__s
lea eax, [ebp + 0x24]
call fcn.0041c27f
add esp, 0xc
push ebx
push 1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 9
call fcn.00404ec6
jmp 0x422d7e
push dword [ebp + 0x74]
lea eax, [ebp + 0x24]
push str.keywords
push str.SELECT__FROM__s_WHERE_id_d
call fcn.0041c27f
add esp, 0xc
push str.CChromeBrowser::SearchDB_sql
lea ecx, [ebp - 0x28]
call fcn.00404bd0
lea esi, [ebp + 0x24]
mov byte [ebp - 4], 0xb
call fcn.00404a70
push eax
lea ecx, [ebp - 0x148]
call fcn.0041c01b
mov byte [ebp - 4], 0xc
push dword [eax]
lea ecx, [ebp]
call fcn.00404bd0
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xd
call fcn.00401985
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp]
call fcn.004058b3
lea eax, [ebp - 0x144]
cmp dword [ebp - 0x148], eax
je 0x422de6
push dword [ebp - 0x148]
call fcn.0049f900
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004058b3
push ebx
lea eax, [ebp + 0x1c]
push eax
push 0xffffffffffffffff
lea esi, [ebp + 0x24]
call fcn.00404a70
push eax
push dword [ebp + 0x28]
call fcn.00461367
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x422e5b
push str.CChromeBrowser::SearchDB___sqlite3_prepare
lea ecx, [ebp - 0x28]
call fcn.00404bd0
lea eax, [ebp - 0x28]
push esi
push eax
mov byte [ebp - 4], 0xe
call fcn.004018c5
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004058b3
push dword [ebp + 0x28]
call fcn.0046f495
pop ecx
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.00401713
jmp 0x422cc4
mov esi, dword [ebp + 0x1c]
push esi
mov dword [ebp + 0x20], 0x10
call fcn.0044914c
pop ecx
cmp eax, 0x64
jne 0x423107
push ebx
push esi
call fcn.0044958c
pop ecx
pop ecx
push 1
mov dword [edi + 4], eax
push esi
lea eax, [ebp]
push eax
call fcn.00424d2e
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 8]
mov byte [ebp - 4], 0xf
push eax
mov dword [ebp + 0x1c], ecx
call fcn.00404d71
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.00404ec6
push 2
push esi
lea eax, [ebp]
push eax
call fcn.00424d2e
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 0x10
call fcn.00404d71
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.00404ec6
push 3
push esi
lea eax, [ebp]
push eax
call fcn.00424d2e
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 0x11
call fcn.00404d71
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.00404ec6
push 4
push esi
lea eax, [ebp]
push eax
call fcn.00424d2e
push 0xffffffffffffffff
push ebx
lea ecx, [edi + 0x5c]
push eax
mov byte [ebp - 4], 0x12
mov dword [ebp + 0x20], ecx
call fcn.00404d71
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.00404ec6
push 5
push esi
call fcn.0044958c
mov dword [edi + 0x78], eax
push 6
push esi
call fcn.0044958c
add esp, 0x10
push 7
mov dword [edi + 0x7c], eax
push esi
lea eax, [ebp]
push eax
call fcn.00424d2e
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x80]
mov byte [ebp - 4], 0x13
call fcn.00404d71
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.00404ec6
push 8
push esi
call fcn.0044958c
push 9
push esi
mov dword [edi + 0x9c], eax
call fcn.0044958c
add esp, 0x10
push 0xa
mov dword [edi + 0xa0], eax
push esi
lea eax, [ebp]
push eax
call fcn.00424d2e
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0xa4]
mov byte [ebp - 4], 0x14
call fcn.00404d71
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.00404ec6
push 0xb
push esi
lea eax, [ebp]
push eax
call fcn.00424d2e
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0xc0]
mov byte [ebp - 4], 0x15
call fcn.00404d71
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 9
call fcn.00404ec6
push 0xc
push esi
call fcn.0044958c
pop ecx
pop ecx
push str.CChromeBrowser::CreateSearchProvider___pChromeSearchProvider__sShortName
lea ecx, [ebp - 0x28]
mov dword [edi + 0xdc], eax
call fcn.00404bd0
mov byte [ebp - 4], 0x16
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x18], 0x10
jb 0x423024
mov eax, dword [eax + 4]
jmp 0x423027
add eax, 4
push eax
lea ecx, [ebp - 0x148]
call fcn.0041c01b
mov byte [ebp - 4], 0x17
push dword [eax]
lea ecx, [ebp]
call fcn.00404bd0
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0x18
call fcn.00401985
pop ecx
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp]
call fcn.004058b3
lea eax, [ebp - 0x144]
cmp dword [ebp - 0x148], eax
je 0x423078
push dword [ebp - 0x148]
call fcn.0049f900
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004058b3
push str.CChromeBrowser::CreateSearchProvider___pChromeSearchProvider__sUrl
lea ecx, [ebp - 0x28]
call fcn.00404bd0
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x18], 0x10
jb 0x4230a5
mov eax, dword [eax + 4]
jmp 0x4230a8
add eax, 4
push eax
lea ecx, [ebp - 0x24c]
call fcn.0041c01b
mov byte [ebp - 4], 0x1a
push dword [eax]
lea ecx, [ebp - 0x44]
call fcn.00404bd0
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0x1b
call fcn.00401985
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x44]
call fcn.004058b3
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x24c], eax
je 0x4230f6
push dword [ebp - 0x24c]
call fcn.0049f900
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.004058b3
mov dword [ebp + 0x20], ebx
push esi
call fcn.00448c15
push dword [ebp + 0x28]
call fcn.0046f495
pop ecx
pop ecx
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.00401713
mov esi, dword [ebp + 0x20]
jmp 0x422cc4