Function at 0x4151f3
Capabilities:
Reference sql statements

Disassembly:
push 0xd0
mov eax, 0x5c57af
call fcn.0058ec5e
or dword [ebp - 0x28], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x1c]
push str.SELECT_id__target_path__start_time__total_bytes__mime_type_FROM_downloads_WHERE_id_____ORDER_BY_id_ASC_LIMIT_100_
lea eax, [ebp - 0xac]
push eax
call fcn.0049d0d0
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
push 1
lea eax, [ebp - 0xac]
call fcn.0049cfb0
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0049cd60
mov byte [ebp - 4], 2
cmp byte [ebp - 0xc0], bl
jne 0x4153b1
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
push 0x6828c0
lea eax, [ebp - 0x60]
push eax
call fcn.00410e94
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c]
push eax
call fcn.0040855f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x58]
push eax
call fcn.0040855f
mov byte [ebp - 4], 5
lea eax, [ebp - 0x54]
push eax
call fcn.0040855f
mov byte [ebp - 4], 6
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 7
push str.Google_Chrome
lea eax, [ebp - 0x60]
push eax
call fcn.0040865a
xor esi, esi
lea edi, [ebp - 0xc8]
call fcn.0049c880
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
inc esi
call fcn.0049c900
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040865a
push 2
pop esi
call fcn.0049c880
mov ecx, eax
or ecx, edx
je 0x415301
push ebx
push 0xf4240
push edx
push eax
call fcn.005870d0
sub eax, 0xb6109100
sbb edx, esi
mov dword [ebp - 0x1c], edx
jmp 0x415306
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x50], eax
push 3
pop esi
lea edi, [ebp - 0xc8]
call fcn.0049c880
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
push 4
pop esi
call fcn.0049c900
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040865a
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
mov eax, esi
sub eax, ecx
cdq
push 0x28
pop ebx
idiv ebx
mov dword [ebp - 0x14], eax
xor ebx, ebx
cmp ecx, ebx
je 0x41536c
mov eax, dword [edi + 0x14]
sub eax, ecx
cdq
push 0x28
pop ecx
idiv ecx
cmp dword [ebp - 0x14], eax
jae 0x41536c
lea eax, [ebp - 0x68]
push eax
push 1
push esi
call fcn.00417bb5
mov dword [edi + 0x10], eax
jmp 0x415390
mov ebx, esi
lea esi, [ebp - 0x40]
call fcn.0048069e
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa0]
push eax
mov eax, edi
call fcn.00417b22
xor ebx, ebx
lea eax, [ebp - 0xc8]
push eax
call fcn.0049c980
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
call fcn.00415757
mov esi, dword [ebp + 8]
jmp 0x415251
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
cdq
push 0x28
pop ecx
idiv ecx
test eax, eax
je 0x4156d5
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.00416ba9
call fcn.004170d8
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
push ebx
push 1
call fcn.0040e968
pop ecx
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x415405
lea ecx, [ebp - 0x90]
mov dword [eax], ecx
jmp 0x415407
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xd
call fcn.00440543
mov dword [ebp - 0x78], eax
mov byte [eax + 0x21], 1
mov eax, dword [ebp - 0x78]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [eax], eax
mov eax, dword [ebp - 0x78]
mov dword [eax + 8], eax
mov dword [ebp - 0x74], ebx
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xf
mov ecx, dword [esi + 0x1c]
push str.SELECT_id__url_FROM_downloads_url_chains_WHERE_id_____AND_id_____
lea eax, [ebp - 0x70]
push eax
call fcn.0049d0d0
mov byte [ebp - 4], 0x10
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x20]
call fcn.0048069e
call fcn.00450a94
push dword [eax + 4]
push dword [eax]
push 1
lea eax, [ebp - 0x70]
call fcn.0049cff0
lea eax, [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0xc]
mov eax, ebx
call fcn.00416ba9
call fcn.004170d8
push dword [eax + 4]
push dword [eax]
push 2
lea eax, [ebp - 0x70]
call fcn.0049cff0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0049cd60
mov byte [ebp - 4], 0x11
cmp byte [ebp - 0x4c], 0
jne 0x4154f3
xor esi, esi
lea edi, [ebp - 0x54]
call fcn.0049c880
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
inc esi
call fcn.0049c900
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00417110
pop ecx
push eax
call fcn.0040865a
mov eax, edi
push eax
call fcn.0049c980
jmp 0x4154b4
mov edi, ebx
mov ebx, dword [ebx + 0xc]
lea esi, [ebp - 0x18]
call fcn.0048069e
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0xd0]
call fcn.0048069e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x415520
cmp eax, dword [ebp - 0xd0]
je 0x415525
call fcn.0058204a
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xcc]
je 0x4156a5
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x40], eax
lea esi, [ebp - 0x18]
call fcn.00450a94
mov dword [ebp + 8], eax
push eax
lea ebx, [ebp - 0x38]
lea edi, [ebp - 0x90]
call fcn.00418426
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xb4], eax
lea edi, [ebp - 0xb4]
mov esi, ebx
call fcn.004355da
test al, al
jne 0x4155a4
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov ecx, dword [ebp + 8]
call fcn.004174e2
test al, al
jne 0x4155a4
mov eax, ebx
jmp 0x4155c6
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
mov ecx, dword [eax]
mov dword [ebp - 0xd8], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0xd4], eax
lea edi, [ebp - 0x40]
lea esi, [ebp - 0xd8]
call fcn.004355da
test al, al
je 0x415657
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x9c], eax
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [ebp + 8], ecx
lea ecx, [eax + 0x28]
mov dword [ebp - 0x2c], eax
mov ebx, ecx
mov dword [ebp - 0xa4], ebx
cmp ebx, dword [ebp + 8]
je 0x415628
mov esi, dword [ebp - 0x2c]
call fcn.0041c6b3
add dword [ebp - 0x2c], 0x28
add ebx, 0x28
jmp 0x41560c
mov eax, dword [edi + 0x10]
push eax
add eax, 0xffffffd8
call fcn.00417b9d
add dword [edi + 0x10], 0xffffffd8
mov ebx, dword [ebp - 0x9c]
lea esi, [ebp - 0x20]
call fcn.0048069e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x415500
lea esi, [ebp - 0x18]
call fcn.00450a94
mov edi, eax
call fcn.00450a94
mov esi, eax
push edi
lea eax, [ebp - 0x90]
push eax
call fcn.00417110
lea edi, [esi + 0xc]
call fcn.00408619
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4156a1
call fcn.0058204a
xor eax, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x415698
call fcn.0058204a
add dword [ebp - 0x14], 0x28
jmp 0x415500
mov eax, dword [eax]
jmp 0x41568b
mov byte [ebp - 4], 0x10
lea esi, [ebp - 0x54]
call fcn.0049c7f0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x70]
call fcn.0049cb30
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 2
lea eax, [ebp - 0x90]
push eax
call fcn.004171d6
xor ebx, ebx
jmp 0x4156ed
mov edx, dword [esi + 0x1c]
push str.SELECT_id_FROM_downloads_ORDER_BY_id_DESC_
call fcn.0049d4d0
cmp eax, dword [ebp + 0x10]
jge 0x4156ed
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 1
lea esi, [ebp - 0xc8]
call fcn.0049c7f0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xac]
call fcn.0049cb30
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.0058ed03
ret 0xc