Function at 0x47f240
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a71f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d8
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004a4b10
add esp, 8
test eax, eax
je 0x47f27a
jmp 0x47f457
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3c], esp
push str.SELECT_moz_places.url__moz_places.title__moz_places.visit_count__moz_historyvisits.visit_date_1000000_AS_visit_time_FROM_moz_places_JOIN_moz_historyvisits_WHERE_moz_places.id__moz_historyvisits.place_id_AND_visit_time_1000000____d_ORDER_BY_visit_time_DESC
call fcn.00415710
lea edx, [ebp - 0x5c]
push edx
call fcn.0044d1c0
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x44], esp
lea eax, [ebp - 0x5c]
push eax
call fcn.00415600
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0044cd90
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
call fcn.0042b0e0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x100
lea eax, [ebp - 0x1e4]
push eax
call fcn.00442370
add esp, 0x14
lea ecx, [ebp - 0xb4]
call fcn.004191e0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x1e4]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004a5470
add esp, 0x14
test eax, eax
je 0x47f342
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004191e0
jmp 0x47f457
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004a6070
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x64
jne 0x47f430
lea ecx, [ebp - 0x9c]
call fcn.0047cdd0
mov byte [ebp - 4], 1
push 0
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0xcc]
push eax
call fcn.0047e210
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00444e10
lea ecx, [ebp - 0xcc]
call fcn.004191e0
push 1
mov edx, dword [ebp - 0x10]
push edx
call fcn.004a6620
add esp, 8
cmp eax, 5
je 0x47f3e8
push 1
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call fcn.0047e210
add esp, 0xc
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x84]
call fcn.00444e10
lea ecx, [ebp - 0xe4]
call fcn.004191e0
push 2
mov eax, dword [ebp - 0x10]
push eax
call fcn.004a62a0
add esp, 8
mov dword [ebp - 0x6c], eax
push 3
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004a62e0
add esp, 8
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
lea edx, [ebp - 0x9c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0047ffb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.00419bd0
jmp 0x47f349
mov eax, dword [ebp - 0x10]
push eax
call fcn.004a6660
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004a32e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004191e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8