Function at 0x101235e0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, ecx
mov dword [esp + 4], edx
push ebx
push esi
push edi
mov ebx, dword [eax]
xor edi, edi
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x1c], ecx
lea ecx, [eax + 0x3c]
mov dword [esp + 0x18], ecx
cmp dword [eax + 0x3c], edi
jne 0x101236b9
push dword [ebx + 8]
push dword [ebx + 4]
push str.SELECT_sz_FROM__Q._q_docsize_WHERE_id_
call fcn.10021540
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10123632
lea edi, [eax + 7]
jmp 0x101236b9
mov eax, dword [esp + 0x14]
mov edx, esi
push 0
push dword [esp + 0x1c]
mov eax, dword [eax]
push 0
push 0x85
push 0xffffffffffffffff
inc dword [eax + 0x40]
mov ecx, dword [ebx]
call fcn.10092a20
mov edi, eax
add esp, 0x14
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
dec dword [eax + 0x40]
cmp dword [0x10165b38], 0
je 0x101236af
mov eax, dword [0x10168b88]
test eax, eax
je 0x1012367d
push eax
call dword [0x10165b88]
add esp, 4
push esi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push esi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x101236b9
push eax
call dword [0x10165b90]
jmp 0x101236b6
push esi
call dword [0x10165b5c]
add esp, 4
mov ebx, dword [esp + 0x18]
mov esi, dword [ebx]
push esi
call fcn.10048d60
add esp, 4
test esi, esi
je 0x10123878
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
push esi
call fcn.1004b340
push esi
call fcn.10049d90
add esp, 0x14
cmp eax, 0x64
jne 0x1012385e
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10123703
push eax
call dword [0x10165b88]
add esp, 4
mov eax, dword [esi + 0x78]
test eax, eax
je 0x10123715
xor ecx, ecx
cmp cx, word [esi + 0x90]
jb 0x1012372d
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022340
mov eax, 0x10150a48
push eax
call fcn.10048ec0
mov ecx, dword [esi]
add esp, 4
mov edx, dword [esi + 0x24]
mov dword [esp + 0x14], eax
cmp byte [ecx + 0x57], 0
jne 0x1012374d
test edx, edx
jne 0x1012374d
xor eax, eax
jmp 0x10123752
call fcn.1001f000
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10123768
push eax
call dword [0x10165b90]
add esp, 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012377b
push eax
call dword [0x10165b88]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x1012378d
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x101237a5
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.10022340
mov ecx, 0x10150a48
movzx eax, word [ecx + 0x10]
test al, 2
je 0x101237b8
cmp byte [ecx + 0x12], 1
jne 0x101237b8
mov ebx, dword [ecx + 0xc]
jmp 0x101237e1
test al, 0x10
je 0x101237d0
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x101237cc
mov ebx, dword [ecx]
add ebx, edx
jmp 0x101237e1
mov ebx, edx
jmp 0x101237e1
test al, 1
je 0x101237d8
xor ebx, ebx
jmp 0x101237e1
mov dl, 1
call fcn.10043c50
mov ebx, eax
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x101237f4
test edx, edx
jne 0x101237f4
xor eax, eax
jmp 0x101237f9
call fcn.1001f000
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012380f
push eax
call dword [0x10165b90]
add esp, 4
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [esp + 0x1c], edi
jle 0x1012384a
nop dword [eax + eax]
cmp edi, ebx
jge 0x1012385e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [edi + ecx]
call fcn.10126860
add dword [esp + 0x10], 4
add edi, eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jl 0x10123820
cmp edi, ebx
jne 0x1012385e
push esi
call fcn.10048d60
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.10048d60
add esp, 4
mov ecx, 0x10b
test eax, eax
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret