Function at 0x634f10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x2c]
push esi
xor esi, esi
or eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
jne 0x634f31
mov esi, ebx
mov dword [ebp - 4], ebx
call fcn.00658040
test eax, eax
jne 0x63515e
lea eax, [esi + 0x48]
push eax
call fcn.0063b730
mov esi, eax
add esp, 4
test esi, esi
je 0x63515e
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], 0
mov dword [esi + 0x18], 0
mov ecx, dword [ebp + 0x24]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
je 0x634ff3
push ebx
push dword [ebp + 0x28]
lea eax, [esi + 0x48]
mov dword [esi + 0x20], ebx
push eax
mov dword [esi + 0x1c], eax
call fcn.005bcb70
add esp, 0xc
lea ebx, [edi + 0x8c]
jmp 0x63513b
cmp dword [edi + 0x88], 0
jne 0x63506a
push dword [edi + 0x14]
push dword [edi + 0x10]
push str.SELECT_block_FROM__Q._q_segments_WHERE_blockid_BETWEEN___AND___ORDER_BY_blockid
call fcn.005f7a20
add esp, 0xc
mov dword [edi + 0x88], eax
test eax, eax
jne 0x63506a
mov dword [ebp - 4], 7
lea ebx, [edi + 0x8c]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x635046
push eax
call fcn.005fa130
mov edx, dword [ebx]
add esp, 4
mov ecx, dword [edi + 0x98]
mov eax, dword [esi + 0x18]
mov dword [ecx + edx*4], eax
inc dword [ebx]
cmp dword [esi + 0x28], 0
jne 0x635057
push dword [esi + 0x30]
call fcn.005f7d20
add esp, 4
push esi
call fcn.005f7d20
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x8c]
lea ebx, [edi + 0x8c]
test ecx, ecx
jne 0x635108
mov eax, dword [edi + 0x94]
cmp dword [edi + 0x90], eax
jne 0x6350c9
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x98]
mov dword [ebp - 8], eax
call fcn.00658040
test eax, eax
jne 0x6350fc
mov eax, dword [ebp - 4]
shl eax, 2
push eax
push dword [ebp - 8]
call fcn.006414f0
add esp, 8
test eax, eax
je 0x6350fc
mov ecx, dword [ebp - 4]
mov dword [edi + 0x94], ecx
mov dword [edi + 0x98], eax
push 0
lea eax, [esi + 0x18]
push eax
push 0
push 1
push 0xffffffffffffffff
push dword [edi + 0x88]
push dword [edi + 0xc]
call fcn.0063b1b0
add esp, 0x1c
mov dword [ebp - 4], eax
test eax, eax
jne 0x635026
inc dword [edi + 0x90]
lea edx, [esi + 0x18]
jmp 0x635119
mov dword [ebp - 4], 7
jmp 0x635026
mov eax, dword [edi + 0x98]
lea edx, [esi + 0x18]
dec ecx
mov dword [ebx], ecx
mov eax, dword [eax + ecx*4]
mov dword [edx], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push dword [edx]
call fcn.005f8c60
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 2
push dword [esi + 0x18]
call fcn.005f8c60
add esp, 0x20
push esi
call fcn.0060ffd0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x635026
mov eax, dword [ebp + 0x30]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret