Function at 0x61b937
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xca50]
test eax, eax
jne 0x61b963
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xca50], 2
jmp 0x61ba7b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xcb54]
mov dword [ebp - 0xc], eax
jmp 0x61ba7b
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14c]
and eax, 0xfffffffe
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x14c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x144]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea ecx, [ebp - 0x11]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jns 0x61ba1b
cmp dword [ebp - 0x10], 0xfffffff5
jne 0x61b9f7
mov eax, dword [ebp + 8]
mov dword [eax + 0x14c], 1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xcb54], edx
mov eax, 0xffffffdb
jmp 0x61bbb5
mov eax, dword [ebp + 8]
mov dword [eax + 0xca50], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xcb54], 0
mov eax, 0xffffffd5
jmp 0x61bbb5
cmp dword [ebp - 0x10], 0
jne 0x61ba38
mov eax, dword [ebp + 8]
mov dword [eax + 0x148], 0xffffffff
mov eax, 0xfffffff3
jmp 0x61bbb5
movzx eax, byte [ebp - 0x11]
test al, al
jne 0x61ba64
mov eax, dword [ebp + 8]
mov dword [eax + 0xca50], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xcb54], 0
mov eax, 0xfffffffe
jmp 0x61bbb5
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
movzx ecx, byte [ebp - 0x11]
mov edx, dword [ebp + 8]
mov byte [edx + eax + 0xca54], cl
cmp dword [ebp - 0xc], 0xff
jg 0x61baad
cmp dword [ebp - 0xc], 0
je 0x61b974
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + edx + 0xca54]
cmp al, 0xa
jne 0x61b974
jmp 0x61baad
sub dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x61badd
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + edx + 0xca54]
cmp al, 0xa
je 0x61baa9
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
mov eax, dword [ebp + 8]
movzx eax, byte [eax + edx + 0xca54]
cmp al, 0xd
je 0x61baa9
mov eax, dword [ebp + 8]
mov dword [eax + 0xca50], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xcb54], 0
cmp dword [ebp - 0xc], 0
jne 0x61bb07
mov eax, 0xfffffffe
jmp 0x61bbb5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb8]
test eax, eax
je 0x61bb2f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xb8]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [esp + 4], edx
mov dword [esp], ecx
call eax
mov edx, dword [ebp + 8]
mov dword [edx + 0xb8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb8]
test eax, eax
jne 0x61bb7a
mov dword [esp + 8], 0x99f8e0
mov dword [esp + 4], 0xfffffffa
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0061ac05
jmp 0x61bbb5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea ecx, [eax + 0xca54]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb8]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0086e9f1
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
mov eax, 0
leave
ret