Function at 0x1812bd64
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edx, ecx
mov dword [esp + 0x18], ebx
xor eax, eax
mov dword [esp + 0x1c], edx
push 7
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x38]
mov eax, dword [edx]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x34]
mov esi, eax
cmp dword [esi + 0x30], 0
jne 0x1812c488
cmp dword [esi + 0x3c], 0
jne 0x1812c481
mov edi, edx
mov ecx, edi
call fcn.1812b77b
cmp byte [esp + 0x34], 0xc
mov dword [esp + 0x10], eax
jne 0x1812bdde
mov ecx, dword [ebx + 0x1c]
push 0
push dword [ecx]
mov ecx, eax
push dword [esp + 0x40]
push 0x64
pop edx
call fcn.180ff616
add esp, 0xc
mov byte [esp + 0x34], 0xe
mov eax, dword [ebx + 4]
test eax, 0x400
je 0x1812be08
lea eax, [esp + 0x34]
mov edx, ebx
push eax
mov ecx, edi
call fcn.1812bcde
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jns 0x1812c44d
mov eax, dword [ebx + 4]
mov ecx, 0x2000
test ecx, eax
je 0x1812be3d
mov eax, ebx
test dword [eax + 4], ecx
je 0x1812be1f
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x1812be13
test eax, eax
je 0x1812be3d
lea eax, [esp + 0x34]
mov edx, ebx
push eax
mov ecx, edi
call fcn.1812b9b8
xor eax, eax
pop ecx
mov dword [esp + 0x14], eax
jmp 0x1812c367
xor edx, edx
cmp dword [ebx + 0x30], edx
je 0x1812be56
push dword [ebp + 8]
mov edx, ebx
mov ecx, edi
call fcn.1812c72b
pop ecx
jmp 0x1812c47a
cmp dword [esi + 0x34], edx
jne 0x1812be7d
push str.COMPOUND_QUERY
push 1
push edi
call fcn.180ff83c
add esp, 0xc
push str.LEFT_MOST_SUBQUERY
push 1
push edi
call fcn.180ff83c
add esp, 0xc
xor edx, edx
movzx eax, byte [ebx]
sub eax, 0x84
je 0x1812c19d
sub eax, 1
je 0x1812c083
sub eax, 1
je 0x1812c19d
mov ecx, dword [edi + 0x28]
push edx
push edx
push ecx
lea eax, [ecx + 1]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
inc eax
push 0x64
pop edx
mov dword [edi + 0x28], eax
call fcn.180ff616
mov dword [ebx + 0x14], eax
add esp, 0xc
mov ecx, dword [ebx + 0x38]
mov eax, ebx
jmp 0x1812bed0
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x1812becb
or dword [eax + 4], 0x20
mov edx, esi
mov eax, dword [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x54], 1
call fcn.1812ee27
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1812c44d
mov ecx, dword [esp + 0x10]
push eax
push eax
push dword [esp + 0x34]
push 0x64
pop edx
call fcn.180ff616
movzx ecx, byte [ebx]
add esp, 0xc
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x3c]
and dword [ebx + 0x34], 0
and dword [ebx + 0x3c], 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
call fcn.1812acb7
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.180ff83c
lea eax, [esp + 0x60]
mov edx, ebx
push eax
mov ecx, edi
call fcn.1812ee27
mov ecx, eax
add esp, 0x14
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x34], esi
movzx eax, word [esi + 2]
mov dword [esp + 0x14], ecx
cmp word [ebx + 2], ax
jle 0x1812bf88
mov word [ebx + 2], ax
mov edx, dword [ebx + 0x3c]
test edx, edx
je 0x1812bf9c
mov ecx, dword [esp + 0x20]
call fcn.1810fc83
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x3c], eax
test ecx, ecx
jne 0x1812c35a
mov esi, dword [edi + 0x38]
mov ecx, edi
mov edx, dword [esp + 0x18]
dec esi
push esi
mov dword [esp + 0x34], esi
lea ebx, [esi - 1]
mov dword [edi + 0x38], ebx
call fcn.1812b79b
pop ecx
mov ecx, dword [esp + 0x10]
push 0
push esi
push dword [esp + 0x2c]
push 0x25
pop edx
call fcn.180ff616
add esp, 0xc
mov ecx, edi
call fcn.18114815
mov ecx, dword [esp + 0x10]
mov esi, eax
push 0
push esi
push dword [esp + 0x2c]
push 0x7f
pop edx
call fcn.180ff616
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edi, eax
push 0
push esi
push ebx
push dword [esp + 0x38]
push 0x1d
pop edx
call fcn.180ff900
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.18114834
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x44]
mov edx, dword [esp + 0x28]
push esi
push ebx
push eax
push 0
push 0
push dword [esp + 0x48]
call fcn.1812a413
mov ecx, dword [esp + 0x38]
mov edx, ebx
call fcn.180ff99a
mov ecx, dword [esp + 0x38]
push 0
push edi
mov edi, dword [esp + 0x54]
push edi
push 5
pop edx
call fcn.180ff616
add esp, 0x34
mov edx, esi
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.180ff99a
xor ebx, ebx
lea eax, [edi + 1]
push ebx
push ebx
push eax
push 0x74
pop edx
mov ecx, esi
call fcn.180ff616
add esp, 0xc
push ebx
push ebx
jmp 0x1812c344
mov eax, dword [ebx + 8]
mov ecx, edi
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x3c], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], edx
mov edx, esi
push eax
call fcn.1812ee27
pop ecx
mov ecx, eax
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x3c], edx
test ecx, ecx
jne 0x1812c44d
mov dword [ebx + 0x34], edx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
test ecx, ecx
je 0x1812c102
push edx
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push 0x14
pop edx
call fcn.180ff616
mov ecx, dword [ebx + 0xc]
add esp, 0xc
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x1812c102
push ecx
inc ecx
mov edx, 0x99
push ecx
push dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
call fcn.180ff616
add esp, 0xc
push str.UNION_ALL
push 1
push edi
call fcn.180ff83c
add esp, 0xc
lea eax, [esp + 0x34]
mov edx, ebx
mov ecx, edi
push eax
call fcn.1812ee27
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x34]
pop ecx
mov cx, word [ebx + 2]
mov dword [ebx + 0x34], esi
mov dx, word [esi + 2]
mov dword [esp + 0x28], eax
call fcn.180ea21b
movzx eax, ax
mov word [ebx + 2], ax
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x1812c17b
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x30]
call fcn.18110b20
test eax, eax
je 0x1812c17b
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x1812c17b
cdq
push edx
push eax
call fcn.180ea279
pop ecx
pop ecx
cmp word [esp + 0x24], ax
jle 0x1812c17b
mov word [ebx + 2], ax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1812c35a
mov ecx, dword [esp + 0x10]
mov edx, eax
call fcn.180ffe36
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
jmp 0x1812c35a
cmp byte [esp + 0x34], 1
jne 0x1812c1ae
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
jmp 0x1812c1e8
mov ecx, dword [edi + 0x28]
push edx
push edx
push ecx
lea eax, [ecx + 1]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
push 0x64
pop edx
mov dword [edi + 0x28], eax
call fcn.180ff616
mov dword [ebx + 0x14], eax
add esp, 0xc
mov ecx, dword [ebx + 0x38]
mov eax, ebx
jmp 0x1812c1dc
mov eax, ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x1812c1d7
or dword [eax + 4], 0x20
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], eax
mov edx, esi
xor eax, eax
mov byte [esp + 0x6c], 1
mov dword [esp + 0x74], eax
mov ecx, edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x6c]
push eax
call fcn.1812ee27
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1812c44d
and dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x3c]
and dword [ebx + 0x3c], ecx
cmp byte [ebx], 0x86
movzx ecx, byte [ebx]
mov dword [esp + 0x30], eax
sete al
inc al
mov byte [esp + 0x6c], al
call fcn.1812acb7
push eax
push str._s_USING_TEMP_B_TREE
push 1
push edi
call fcn.180ff83c
lea eax, [esp + 0x7c]
mov edx, ebx
push eax
mov ecx, edi
call fcn.1812ee27
and dword [ebx + 0x30], 0
add esp, 0x14
cmp byte [ebx], 0x84
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x34], esi
jne 0x1812c28b
mov dx, word [esi + 2]
mov cx, word [ebx + 2]
call fcn.180ea21b
mov word [ebx + 2], ax
mov edx, dword [ebx + 0x3c]
mov esi, dword [esp + 0x20]
test edx, edx
je 0x1812c29d
mov ecx, esi
call fcn.1810fc83
and dword [ebx + 8], 0
and dword [ebx + 0xc], 0
cmp byte [esp + 0x34], 1
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x3c], eax
je 0x1812c35a
cmp byte [esi + 0x51], 0
jne 0x1812c35a
mov ebx, dword [edi + 0x38]
mov eax, dword [esp + 0x1c]
dec ebx
mov edx, dword [esp + 0x18]
mov ecx, eax
push ebx
lea edi, [ebx - 1]
mov dword [eax + 0x38], edi
call fcn.1812b79b
mov esi, dword [esp + 0x14]
pop ecx
push 0
push ebx
push dword [esp + 0x2c]
mov ecx, esi
push 0x25
pop edx
call fcn.180ff616
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov esi, dword [esi + 0x6c]
push ebx
push edi
push eax
push 0
push 0
push dword [esp + 0x38]
call fcn.1812a413
mov ecx, dword [esp + 0x28]
mov edx, edi
call fcn.180ff99a
mov edi, dword [esp + 0x3c]
push 0
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
push edi
push 5
pop edx
call fcn.180ff616
add esp, 0x24
mov edx, ebx
mov ecx, esi
call fcn.180ff99a
push 0
push 0
push edi
push 0x74
pop edx
mov ecx, esi
call fcn.180ff616
mov edi, dword [esp + 0x28]
add esp, 0xc
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 0x38], 0
jne 0x1812c367
mov ecx, edi
call fcn.180ff88d
cmp dword [edi + 0x24], 0
jne 0x1812c44d
test byte [ebx + 4], 0x20
je 0x1812c44d
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x20]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x30], eax
call fcn.1812ab9b
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
test esi, esi
jne 0x1812c3a4
push 7
pop ebx
jmp 0x1812c451
lea eax, [esi + 0x14]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x2c], eax
jle 0x1812c3eb
mov esi, dword [esp + 0x30]
push eax
mov edx, ebx
mov ecx, edi
call fcn.1812b8be
mov dword [esi], eax
pop ecx
test eax, eax
jne 0x1812c3d5
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
add esi, 4
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x2c]
jl 0x1812c3bb
mov esi, dword [esp + 0x1c]
and dword [esp + 0x24], 0
lea edi, [ebx + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [edi]
mov dword [esp + 0x30], eax
test eax, eax
js 0x1812c437
mov edx, eax
mov ecx, ebx
call fcn.180ffe36
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push 0xfffffffffffffff7
mov dword [eax + 8], ecx
mov ecx, ebx
inc dword [esi]
push esi
call fcn.180ffd78
or dword [edi], 0xffffffff
add edi, 4
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, 2
jl 0x1812c3f7
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx + 0x34]
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x1812c3eb
mov ecx, esi
call fcn.1812ac14
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x40]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1812c478
mov ecx, dword [esp + 0x20]
mov edx, eax
push 1
call fcn.18129943
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, str.LIMIT
jmp 0x1812c48d
mov esi, str.ORDER_BY
movzx ecx, byte [ebx]
call fcn.1812acb7
push eax
push esi
push str._s_clause_should_come_after__s_not_before
push edx
call fcn.180e8fc0
xor ebx, ebx
add esp, 0x10
inc ebx
jmp 0x1812c451