Function at 0x4330fc
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x2c]
push str.SELECT_urls.id__urls.url__urls.title__urls.rank_FROM_urls_WHERE_url_LIKE___ORDER_BY_rank_ASC_LIMIT__
push esi
mov dword [esp + 0x24], esi
call fcn.00419649
cmp dword [esp + 0x2c], 0
je 0x4333a3
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push dword [eax]
call fcn.00429051
push str._:__www.
lea ecx, [esp + 0x10]
call fcn.004022cb
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.0040c06e
push 0x457fbc
lea ecx, [esp + 0x10]
call fcn.0040bfc9
push dword [esp + 0xc]
lea ecx, [esp + 0x30]
push 0
call fcn.00419768
push 6
pop edi
push edi
push 1
lea ecx, [esp + 0x34]
call fcn.00419718
lea ecx, [esp + 0x2c]
call fcn.004196b8
mov ebx, dword [ebp + 0x10]
jmp 0x4331cb
push 0x28
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x4331a5
mov ecx, eax
call fcn.00432f1a
jmp 0x4331a7
xor eax, eax
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
push eax
call fcn.00433057
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00426449
lea ecx, [esp + 0x2c]
call fcn.004196b8
test al, al
jne 0x43318f
cmp dword [ebx + 4], edi
jae 0x43338b
push str.SELECT_urls.id__urls.url__urls.title__urls.rank_FROM_urls_WHERE_url_LIKE___ORDER_BY_rank_ASC_LIMIT__
push esi
lea ecx, [esp + 0x28]
call fcn.00419649
cmp dword [esp + 0x20], 0
je 0x433381
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x18]
push dword [eax]
call fcn.00429051
push str._:__
lea ecx, [esp + 0x14]
call fcn.004022cb
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push dword [esi - 0xc]
push esi
call fcn.0040c06e
push 0x457fbc
lea ecx, [esp + 0x14]
call fcn.0040bfc9
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push edi
push 0
call fcn.00419768
push 6
pop ecx
sub ecx, dword [ebx + 4]
push ecx
push 1
lea ecx, [esp + 0x28]
call fcn.00419718
jmp 0x433284
push 0x28
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x433267
mov ecx, eax
call fcn.00432f1a
jmp 0x433269
xor eax, eax
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
call fcn.00433057
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00426449
lea ecx, [esp + 0x20]
call fcn.004196b8
test al, al
jne 0x433251
lea ecx, [edi - 0x10]
call fcn.0040169b
lea ecx, [esi - 0x10]
call fcn.0040169b
push ecx
lea ecx, [esp + 0x24]
call fcn.004196f4
mov esi, dword [esp + 0x1c]
push 6
pop edi
cmp dword [ebx + 4], edi
jae 0x43338b
push str.SELECT_urls.id__urls.url__urls.title__urls.rank_FROM_urls_WHERE_title_LIKE___ORDER_BY_rank_DESC_LIMIT__
push esi
lea ecx, [esp + 0x28]
call fcn.00419649
cmp dword [esp + 0x20], 0
je 0x433381
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push dword [eax]
call fcn.00429051
mov edi, 0x458170
lea ecx, [esp + 0x10]
push edi
call fcn.004022cb
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push dword [esi - 0xc]
push esi
call fcn.0040c06e
push edi
lea ecx, [esp + 0x14]
call fcn.0040bfc9
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push edi
push 0
call fcn.00419768
push 6
pop ecx
sub ecx, dword [ebx + 4]
push ecx
push 1
lea ecx, [esp + 0x28]
call fcn.00419718
jmp 0x433364
push 0x28
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x433347
mov ecx, eax
call fcn.00432f1a
jmp 0x433349
xor eax, eax
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
call fcn.00433057
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00426449
lea ecx, [esp + 0x20]
call fcn.004196b8
test al, al
jne 0x433331
lea ecx, [edi - 0x10]
call fcn.0040169b
lea ecx, [esi - 0x10]
call fcn.0040169b
push ecx
lea ecx, [esp + 0x24]
call fcn.004196f4
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040169b
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040169b
push ecx
lea ecx, [esp + 0x30]
call fcn.004196f4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc