Function at 0x4210c0
Capabilities:
Reference sql statements
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560496
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], edi
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x188], esi
mov dword [ebp - 4], edi
call fcn.00405080
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 1
call fcn.00413070
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], edi
mov word [ebp - 0xa0], cx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 3
jb 0x42114f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00404090
cmp dword [ebp - 0x38], 8
mov byte [ebp - 4], 5
jb 0x421171
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b8946
add esp, 4
push esi
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x30]
xor eax, eax
push edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
call fcn.00405920
add esp, 0xc
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], edi
push 0x2001f
push reloc.WS2_32.dll_closesocket
push eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 7
call fcn.00404ef0
cmp dword [ebp - 0x1c], 8
mov byte [ebp - 4], 9
jb 0x4211d3
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b8946
add esp, 4
xor ecx, ecx
lea edx, [ebp - 0x194]
mov word [ebp - 0x30], cx
push edx
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
call fcn.0041e7f0
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x184], ecx
lea esi, [ebp - 0x184]
mov dword [ebp - 0x138], eax
mov bl, 1
test bl, bl
je 0x42128b
mov eax, dword [esi]
lea ecx, [ebp - 0x138]
cmp eax, dword [ecx]
je 0x42128b
push 0xffffffffffffffff
add eax, 8
push edi
xor edx, edx
push eax
lea ecx, [ebp - 0x30]
xor bl, bl
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
call fcn.00403410
mov byte [ebp - 4], 0xb
test bl, bl
jne 0x42126d
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x421256
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x158]
call fcn.004079f0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, 1
jmp 0x421246
cmp dword [ebp - 0x1c], 8
mov byte [ebp - 4], 0xa
jb 0x421283
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b8946
add esp, 4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov dword [esi], edx
jmp 0x421211
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1a4], edi
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x19c], edi
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 0xd
call fcn.00419130
push 0xa
xor eax, eax
push str.chrome.exe
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
call fcn.00403510
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x138], esp
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x13d]
push eax
push ecx
mov byte [ebp - 4], 0xf
call fcn.00414040
mov esi, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0x1b4]
add esp, 0xc
push esi
push ecx
lea edx, [ebp - 0x138]
push edx
call fcn.0041dea0
add esp, 0x2c
cmp esi, dword [eax]
mov byte [ebp - 4], 0xe
setne bl
cmp dword [ebp - 0x38], 8
jb 0x42133c
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004b8946
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
test bl, bl
je 0x421405
xor ecx, ecx
push 0xa
mov word [ebp - 0x30], cx
push str.NoRecovery
lea ecx, [ebp - 0x30]
call fcn.00403510
mov eax, dword [ebp - 0x30]
mov ebx, 8
cmp dword [ebp - 0x1c], ebx
jae 0x421373
lea eax, [ebp - 0x30]
mov esi, dword [ebp - 0x158]
push 4
lea edx, [ebp - 0x138]
push edx
push 4
push edi
push eax
push esi
mov dword [ebp - 0x138], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x1c], ebx
jb 0x4213af
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b8946
add esp, 4
mov eax, dword [ebp - 0x1a4]
cmp eax, edi
je 0x4213c2
push eax
call fcn.004b8946
add esp, 4
mov eax, dword [ebp - 0x1b4]
cmp eax, edi
je 0x4213d5
push eax
call fcn.004b8946
add esp, 4
lea ecx, [ebp - 0x194]
call fcn.00418510
mov ecx, dword [ebp - 0x194]
push ecx
call fcn.004b8946
add esp, 4
cmp esi, edi
je 0x4213fa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x8c], ebx
jmp 0x421b0b
mov ebx, 8
push ebx
xor eax, eax
push str.SearchID
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
call fcn.00403510
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x13c]
mov byte [ebp - 4], 0x11
call fcn.0041fa20
mov esi, eax
mov byte [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
lea edx, [ebp - 0x4c]
push esi
push edx
call fcn.00416540
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x421454
mov esi, dword [eax]
jmp 0x421456
mov esi, eax
cmp dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x30]
jae 0x421461
lea ebx, [ebp - 0x30]
xor eax, eax
cmp esi, edi
setne al
cmp eax, edi
jne 0x421473
mov eax, 0xd
jmp 0x421491
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x158]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 8
cmp dword [ebp - 0x38], ebx
jb 0x4214ae
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
jb 0x4214d0
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004b8946
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], edi
mov byte [ebp - 0x68], 0
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x1c], ebx
jb 0x4214f4
mov edx, dword [ebp - 0x30]
push edx
call fcn.004b8946
add esp, 4
mov eax, dword [ebp - 0x13c]
add eax, 0x58
push eax
lea ecx, [ebp - 0x180]
call fcn.00491310
xor ecx, ecx
push 0x12
mov word [ebp - 0x30], cx
push str.select__from_meta
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
call fcn.00403510
mov eax, dword [ebp - 0x180]
mov byte [ebp - 4], 0x15
cmp eax, edi
je 0x421553
push str.sqlite3_reset
push eax
call fcn.0052c3c0
add esp, 4
push eax
call fcn.00491840
add esp, 8
jmp 0x421562
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x180]
call fcn.004919b0
mov eax, dword [ebp - 0x180]
cmp eax, edi
je 0x4216e2
push eax
call fcn.005393c0
add esp, 4
cmp eax, edi
je 0x42158e
cmp eax, 0x64
je 0x42158e
mov byte [ebp - 0x16c], 0
cmp eax, 0x65
jne 0x421595
mov byte [ebp - 0x16c], 1
cmp eax, 0x64
sete al
test al, al
je 0x4216e2
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x180]
call fcn.00418190
mov ecx, dword [eax + 0x10]
push 0x2b
push str.Default_Search_Provider_ID_Backup_Signature
push ecx
push edi
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.00407840
cmp eax, edi
sete bl
cmp dword [ebp - 0x38], 8
mov byte [ebp - 4], 0x15
jb 0x4215e5
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b8946
add esp, 4
test bl, bl
je 0x421562
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], edi
mov byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
push 1
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 0x17
call fcn.004110a0
test al, al
je 0x421973
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x68]
cmp ecx, 0x10
jae 0x421622
lea eax, [ebp - 0x68]
add eax, dword [ebp - 0x58]
cmp ecx, 0x10
mov ecx, dword [ebp - 0x68]
jae 0x421630
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x188]
push edx
push eax
push ecx
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x160], edi
call fcn.0043e800
push 9
xor eax, eax
push str.Signature
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
call fcn.00403510
mov esi, dword [ebp - 0x168]
mov eax, dword [ebp - 0x164]
cmp esi, eax
je 0x4216b1
mov ecx, dword [ebp - 0x4c]
sub eax, esi
cmp dword [ebp - 0x38], 8
jae 0x421697
lea ecx, [ebp - 0x4c]
push eax
push esi
push 3
push edi
push ecx
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x38], 8
jb 0x4216c3
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004b8946
add esp, 4
cmp esi, edi
je 0x4216d0
push esi
call fcn.004b8946
add esp, 4
cmp dword [ebp - 0x54], 0x10
jb 0x4216e2
mov eax, dword [ebp - 0x68]
push eax
call fcn.004b8946
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x4216f4
mov edx, dword [ebp - 0x30]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x178], al
je 0x42171c
lea ecx, [ebp - 0x180]
call fcn.004574c0
push 0x18
mov dword [ebp - 0x148], edi
call fcn.004b92c6
add esp, 4
cmp eax, edi
je 0x421b49
mov dword [ebp - 0x14c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x14c]
mov dword [eax + 4], eax
xor ecx, ecx
push 0x4c
mov word [ebp - 0x4c], cx
mov bl, 0x1a
push str.SELECT_name_FROM_sqlite_master_WHERE_typetable_AND_namekeywords_backup
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
call fcn.00403510
mov esi, dword [ebp - 0x13c]
lea edx, [ebp - 0x14c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 0x1b
call fcn.00491a90
cmp dword [ebp - 0x38], 8
mov byte [ebp - 4], bl
jb 0x42179a
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b8946
add esp, 4
push 0x16
xor edx, edx
push str.select__from_keywords
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], dx
call fcn.00403510
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x148], edi
je 0x4217dd
push 7
push str._backup
lea ecx, [ebp - 0x84]
call fcn.0040f540
lea ecx, [ebp - 0x14c]
call fcn.0041f500
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [esi + 0xa0]
call fcn.00491a90
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax]
mov dword [ebp - 0x13c], edx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x138], eax
mov bl, 1
lea ecx, [ecx]
test bl, bl
je 0x421a6a
mov eax, dword [ecx]
lea ecx, [ebp - 0x138]
cmp eax, dword [ecx]
je 0x421a6a
add eax, 8
push eax
lea ecx, [ebp - 0x168]
xor bl, bl
call fcn.0041d490
mov byte [ebp - 4], 0x1d
lea ecx, [ecx]
test bl, bl
jne 0x421a26
push 2
xor eax, eax
push 0x582014
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], ax
call fcn.00403510
mov ecx, dword [ebp - 0x188]
push ecx
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x1e
call fcn.00405920
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0x1f
call fcn.0041dd30
push eax
lea edx, [ebp - 0x30]
push esi
push edx
call fcn.00405c30
add esp, 0xc
mov dword [ebp - 0x174], edi
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], edi
push 0x2001f
push reloc.WS2_32.dll_closesocket
push eax
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0x21
call fcn.00404ef0
mov esi, 8
cmp dword [ebp - 0x1c], esi
jb 0x4218fa
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b8946
add esp, 4
mov ebx, 7
xor ecx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x54], esi
jb 0x42191c
mov edx, dword [ebp - 0x68]
push edx
call fcn.004b8946
add esp, 4
xor eax, eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], edi
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 0x25
cmp dword [ebp - 0x38], esi
jb 0x42193d
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004b8946
add esp, 4
mov edx, dword [ebp - 0x164]
mov esi, dword [edx]
cmp esi, dword [ebp - 0x164]
je 0x4219ef
lea edi, [esi + 0x28]
mov eax, 8
lea ebx, [esi + 0xc]
cmp dword [edi + 0x14], eax
jb 0x421963
mov edi, dword [edi]
cmp dword [ebx + 0x14], eax
jb 0x42196a
mov ebx, dword [ebx]
test edi, edi
jne 0x421992
lea eax, [edi + 0xd]
jmp 0x4219b1
cmp dword [ebp - 0x54], 0x10
mov byte [ebp - 4], 0x15
jb 0x421562
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004b8946
add esp, 4
jmp 0x421562
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x174]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [esi + 0x45], 0
jne 0x421945
mov eax, dword [esi + 8]
cmp byte [eax + 0x45], 0
jne 0x4219d6
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4219c7
jmp 0x421945
mov eax, dword [esi + 4]
cmp byte [eax + 0x45], 0
jne 0x4219e8
cmp esi, dword [eax + 8]
jne 0x4219e8
mov esi, eax
jmp 0x4219d6
mov esi, eax
jmp 0x421945
cmp dword [ebp - 0x174], 0
mov byte [ebp - 4], 0x1d
je 0x421a13
mov edx, dword [ebp - 0x174]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0
mov bl, 1
xor edi, edi
jmp 0x421850
mov ecx, dword [ebp - 0x164]
mov eax, dword [ecx]
push ecx
push eax
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0x28
call fcn.0041d560
mov ecx, dword [ebp - 0x164]
push ecx
mov byte [ebp - 4], 0x1c
call fcn.004b8946
lea ecx, [ebp - 0x13c]
mov edx, dword [ecx]
mov eax, dword [edx]
add esp, 4
mov dword [ecx], eax
jmp 0x421820
mov esi, 8
cmp dword [ebp - 0x70], esi
jb 0x421a83
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.004b8946
add esp, 4
xor edx, edx
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], edi
mov word [ebp - 0x84], dx
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0x29
call fcn.0041f500
mov eax, dword [ebp - 0x14c]
push eax
call fcn.004b8946
mov eax, dword [ebp - 0x1a4]
add esp, 4
cmp eax, edi
je 0x421ac7
push eax
call fcn.004b8946
add esp, 4
mov eax, dword [ebp - 0x1b4]
cmp eax, edi
je 0x421ada
push eax
call fcn.004b8946
add esp, 4
lea ecx, [ebp - 0x194]
call fcn.00418510
mov ecx, dword [ebp - 0x194]
push ecx
call fcn.004b8946
mov eax, dword [ebp - 0x158]
add esp, 4
cmp eax, edi
je 0x421b05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x8c], esi
jb 0x421b1c
mov edx, dword [ebp - 0xa0]
push edx
call fcn.004b8946
add esp, 4
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0
call fcn.00403350
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x138], edi
call fcn.004b912a
push 0x5a0f40
lea ecx, [ebp - 0x1c0]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004b9346
mov eax, 0x421b2b
ret