Function at 0x1000805b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 8
call fcn.1002ad16
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x100b5ac8
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, 0x100b62ce
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, 0x100b5a7d
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.100070cb
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x100080cb
push ebx
call fcn.1002ad10
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100080db
push ebx
call fcn.1002ad10
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100080fb
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100080f7
imul eax, dword [ebx]
jmp 0x100080ec
mov ecx, eax
test ecx, ecx
je 0x1000811a
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10008113
push ebx
push eax
call fcn.1002ad10
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10008101
call fcn.1002ad10
add esp, 4
mov eax, 0x100b5ac8
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov eax, 0x100b6086
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10008142
push ebx
call fcn.1002ad10
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 1
push 1
push 0x1055e734
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10]
push 0x100b62e7
push dword [ebp - 4]
push str.SELECT_rowid_wxid_FROM_friend_WHERE_rowid__
mov ecx, 3
call fcn.100019f1
add esp, 0xc
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push 0x1055e734
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100081a5
push ebx
call fcn.1002ad10
add esp, 4
push 1
push 1
push 0x1055e734
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 8]
xor eax, eax
cmp dword [ebx], 0
jle 0x100081c8
mov eax, dword [ebx + 4]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10008392
mov ebx, dword [ebp - 8]
push ebx
mov eax, 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x10008211
push 0x21c
push 0x401d072
push 3
call fcn.1002ad22
add esp, 0xc
xor edx, edx
add ebx, 4
dec ecx
je 0x10008224
call fcn.10006294
mov eax, dword [ebp + ecx*4 - 0x18]
jmp 0x10008213
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x1000824c
push eax
mov ebx, eax
call fcn.10001986
inc eax
push eax
call fcn.1002ad16
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000825d
push ebx
call fcn.1002ad10
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 8]
push ebx
mov eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ecx, 2
je 0x10008293
push 0x24a
push 0x401d072
push 3
call fcn.1002ad22
add esp, 0xc
xor edx, edx
add ebx, 4
dec ecx
je 0x100082a6
call fcn.10006294
mov eax, dword [ebp + ecx*4 - 0x18]
jmp 0x10008295
add eax, edx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x100082ce
push eax
mov ebx, eax
call fcn.10001986
inc eax
push eax
call fcn.1002ad16
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100082df
push ebx
call fcn.1002ad10
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000850e
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x100082fe
jmp 0x1000838a
push dword [ebp + 8]
push 4
mov eax, 2
call fcn.1002ad0a
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x18], ebx
call fcn.10003fd6
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp - 0x18]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x10008342
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x18]
call fcn.1002ad2e
add esp, 8
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x1c]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x14]
push edi
test eax, eax
je 0x10008387
push eax
mov ebx, eax
call fcn.10001986
inc eax
push eax
call fcn.1002ad16
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [edi], eax
pop eax
pop ebx
pop ecx
jmp 0x100081d1
add esp, 0xc
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100083b3
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100083af
imul eax, dword [ebx]
jmp 0x100083a4
mov ecx, eax
test ecx, ecx
je 0x100083d2
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x100083cb
push ebx
push eax
call fcn.1002ad10
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x100083b9
call fcn.1002ad10
add esp, 4
mov eax, 0x100b5ac8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push 0x64
call fcn.10002309
cmp dword [ebp - 0xc], 0xb
je 0x10008146
push dword [ebp + 8]
call fcn.10008ab4
mov eax, 0x100b6351
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, 0x100b5a7d
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.100070cb
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10008441
push ebx
call fcn.1002ad10
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10008451
push ebx
call fcn.1002ad10
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x1000846f
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1000846b
imul eax, dword [ebx]
jmp 0x10008460
mov ecx, eax
test ecx, ecx
je 0x1000848e
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10008487
push ebx
push eax
call fcn.1002ad10
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10008475
call fcn.1002ad10
add esp, 4
mov eax, 0x100b5ac8
mov dword [ebp - 8], eax
jmp 0x100084a3
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100084b3
push ebx
call fcn.1002ad10
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100084d1
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100084cd
imul eax, dword [ebx]
jmp 0x100084c2
mov ecx, eax
test ecx, ecx
je 0x100084f0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x100084e9
push ebx
push eax
call fcn.1002ad10
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x100084d7
call fcn.1002ad10
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10008508
push ebx
call fcn.1002ad10
add esp, 4
mov esp, ebp
pop ebp
ret 4