Function at 0x1019d060
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x1019d12c
xor esi, esi
lea ebx, [edx + 0x24]
cmp dword [ebx], esi
jne 0x1019d0e2
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x34]
push str.SELECT__s_FROM__s_T_WHERE_T._Q_
call fcn.100e2630
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1019d0b9
lea esi, [eax + 7]
jmp 0x1019d0df
mov ecx, dword [ebp - 0x1c]
mov edx, edi
push 0
push ebx
push 0
mov ecx, dword [ecx]
push 0x81
push 0xffffffffffffffff
call fcn.1013a960
add esp, 0x14
mov esi, eax
push edi
call fcn.100dfd40
add esp, 4
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx]
push ebx
call fcn.10105890
add esp, 4
test esi, esi
jne 0x1019d271
push edi
push dword [ebp + 8]
push 1
push ebx
call fcn.101079a0
push ebx
call fcn.101066b0
add esp, 0x14
cmp eax, 0x64
je 0x1019d129
push ebx
call fcn.10105890
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov edx, 1
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], 0xffffffff
call fcn.10196e50
mov esi, eax
add esp, 8
mov edi, 1
test esi, esi
jne 0x1019d258
nop dword [eax]
mov eax, dword [ebp - 0x1c]
cmp edi, dword [eax + 0xc]
jg 0x1019d258
mov eax, dword [eax + 0x14]
cmp byte [eax + edi - 1], 0
jne 0x1019d24b
test ebx, ebx
je 0x1019d193
push edi
push ebx
call fcn.10107120
push edi
push ebx
mov esi, eax
call fcn.10106cb0
add esp, 0x10
jmp 0x1019d20e
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x1019d1a0
xor esi, esi
jmp 0x1019d1d4
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x1019d1bd
cmp byte [ecx + 0xa], 1
jne 0x1019d1bd
mov esi, dword [ecx + 0x10]
jmp 0x1019d1d4
test dl, 1
je 0x1019d1c6
xor esi, esi
jmp 0x1019d1d4
mov dl, 1
call fcn.100fffa0
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
movzx eax, word [ecx + 8]
test al, 2
je 0x1019d1e7
cmp byte [ecx + 0xa], 1
jne 0x1019d1e7
mov ecx, dword [ecx + 0xc]
jmp 0x1019d210
test al, 0x10
je 0x1019d1ff
mov edx, dword [ecx + 0xc]
test eax, 0x4000
je 0x1019d1fb
mov ecx, dword [ecx]
add ecx, edx
jmp 0x1019d210
mov ecx, edx
jmp 0x1019d210
test al, 1
je 0x1019d207
xor ecx, ecx
jmp 0x1019d210
mov dl, 1
call fcn.10100680
mov ecx, eax
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x1019d23c
mov edx, dword [ebp - 0x1c]
push 0x1019cfa0
push ecx
push esi
mov eax, dword [edx + 0x3c]
lea ecx, [ebp - 0x10]
push 4
push ecx
push dword [edx + 0x38]
mov eax, dword [eax + 8]
call eax
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
cdq
mov ecx, dword [ecx + 0x18]
sub dword [ecx + edi*8 - 8], eax
sbb dword [ecx + edi*8 - 4], edx
add dword [ebp - 0x14], 4
inc edi
test esi, esi
je 0x1019d160
mov eax, dword [ebp - 0x18]
push ebx
add dword [eax + 0x10], 0xffffffff
adc dword [eax + 0x14], 0xffffffff
call fcn.10105890
add esp, 4
test esi, esi
cmove esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d506b
mov esp, ebp
pop ebp
ret