Function at 0x49d7a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569d73
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5d6b80]
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.0045abd0
push 0x5de13c
mov dword [ebp - 0x44], 0x5de13c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00483ca0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004a7050
test eax, eax
jne 0x49d83e
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], al
call fcn.00483d00
push 0x5de13c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x49da65
mov byte [ebp - 4], 2
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x49d85e
push 0x80004005
call fcn.0045a8f0
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.004940d0
push dword [ebp - 0x34]
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x58]
call fcn.00484150
push 0
push str.value
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.00484460
mov dword [ebx], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0
lea eax, [ebp - 0x30]
push dword [ebx]
push 0x5a33b4
push 0x19
push eax
call fcn.005281e0
add esp, 0x10
lea ecx, [ebp - 0x34]
push 0x47
push str.SELECT_short_name__keyword__url__prepopulate_id_FROM_keywords_WHERE_id
call fcn.004940d0
lea ecx, [ebp - 0x30]
lea edx, [ecx + 1]
jmp 0x49d8e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49d8e0
sub ecx, edx
lea eax, [ebp - 0x30]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.0049b9b0
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x70]
push esi
push eax
lea ecx, [ebp - 0x58]
call fcn.00484150
push 0
push str.prepopulate_id
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00484460
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x48]
setg cl
push 0x59c550
push str.keyword
mov dword [eax], ecx
lea ecx, [ebp - 0x70]
call fcn.004844a0
push eax
mov ecx, edi
call fcn.0046e230
push 0x59c550
push str.short_name
lea ecx, [ebp - 0x70]
call fcn.004844a0
push eax
lea ecx, [ebp - 0x38]
call fcn.0048cac0
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0045bb40
mov ecx, eax
call fcn.0045ba90
push eax
mov ecx, edi
call fcn.0045a580
lea ecx, [ebp - 0x38]
call fcn.0045bb40
mov ecx, eax
call fcn.0045ba90
push 0x582944
push dword [ebp - 0x38]
call fcn.00526fc5
add esp, 8
test eax, eax
je 0x49d9aa
push str.ask.com
push dword [edi]
call fcn.00526fc5
add esp, 8
test eax, eax
jne 0x49d9b3
mov eax, dword [ebp - 0x3c]
mov dword [eax], 1
push 0x59c550
push 0x582cfc
lea ecx, [ebp - 0x70]
call fcn.004844a0
mov ecx, dword [ebp - 0x40]
push eax
call fcn.0046e230
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 0x49d9f1
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.00483d60
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00483d60
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x49da27
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.00483d00
push 0x5de13c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
jmp 0x49da67
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.00525878
mov esp, ebp
pop ebp
ret 0x14