Function at 0x471b30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc433
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x53f030]
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, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ecx, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
call fcn.0043ac50
push 0x543d48
mov dword [ebp - 0x44], 0x543d48
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00459d90
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00476d80
test eax, eax
jne 0x471bce
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], al
call fcn.00459df0
push 0x543d48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x471df5
mov byte [ebp - 4], 2
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x471bee
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push 0x3d
push str.SELECT_value_FROM_meta_WHERE_keyDefault_Search_Provider_ID
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004685e0
push dword [ebp - 0x34]
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x58]
call fcn.0045a230
push 0
push str.value
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.0045a540
mov dword [ebx], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0
lea eax, [ebp - 0x30]
push dword [ebx]
push 0x51e920
push 0x19
push eax
call fcn.004db3c0
add esp, 0x10
lea ecx, [ebp - 0x34]
push 0x47
push str.SELECT_short_name__keyword__url__prepopulate_id_FROM_keywords_WHERE_id
call fcn.004685e0
lea ecx, [ebp - 0x30]
lea edx, [ecx + 1]
jmp 0x471c70
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471c70
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.004707e0
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x70]
push esi
push eax
lea ecx, [ebp - 0x58]
call fcn.0045a230
push 0
push str.prepopulate_id
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.0045a540
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x48]
setg cl
push 0x51e9b0
push str.keyword
mov dword [eax], ecx
lea ecx, [ebp - 0x70]
call fcn.0045a580
push eax
mov ecx, edi
call fcn.0044dc00
push 0x51e9b0
push str.short_name
lea ecx, [ebp - 0x70]
call fcn.0045a580
push eax
lea ecx, [ebp - 0x38]
call fcn.00461f80
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0043bbc0
mov ecx, eax
call fcn.0043bb10
push eax
mov ecx, edi
call fcn.0043a620
lea ecx, [ebp - 0x38]
call fcn.0043bbc0
mov ecx, eax
call fcn.0043bb10
push 0x508908
push dword [ebp - 0x38]
call fcn.004da111
add esp, 8
test eax, eax
je 0x471d3a
push str.ask.com
push dword [edi]
call fcn.004da111
add esp, 8
test eax, eax
jne 0x471d43
mov eax, dword [ebp - 0x3c]
mov dword [eax], 1
push 0x51e9b0
push 0x50d418
lea ecx, [ebp - 0x70]
call fcn.0045a580
mov ecx, dword [ebp - 0x40]
push eax
call fcn.0044dc00
mov edx, dword [ebp - 0x38]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 5
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x471d81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00459e50
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00459e50
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x471db7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00459df0
push 0x543d48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x471df7
xor eax, eax
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.004d89fb
mov esp, ebp
pop ebp
ret 0x14