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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x1060f098]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, edx
mov dword [esp + 8], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
movups xmm0, xmmword [edx]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x30]
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x34], edx
movq xmm0, qword [edx + 0x10]
movq qword [esp + 0x4c], xmm0
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
push edi
mov edi, dword [ecx]
mov dword [esp + 0x14], edi
test edx, edx
jne 0x1009ad5e
cmp dword [eax + 0x38], edx
jne 0x1009ad5e
mov edi, dword [ecx + 8]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x1009a5ac
cmp dword [ecx + 0x78], edi
jne 0x1009a5a1
mov eax, dword [esp + 0x14]
test byte [eax + 0x44], 8
jne 0x1009a5a1
mov byte [ecx + 0x17], 1
call fcn.1005f830
mov edi, eax
mov dword [esp + 0x18], eax
mov cl, byte [esp + 0x40]
cmp cl, 0xc
jne 0x1009a5d2
mov eax, dword [esi]
mov edx, 0x6e
mov ecx, edi
push dword [eax]
push dword [esp + 0x48]
call fcn.1005fc90
mov cl, 0xe
add esp, 8
mov byte [esp + 0x40], cl
mov eax, dword [esi + 8]
test eax, 0x400
je 0x1009a5f6
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.1009a4a0
add esp, 4
mov esi, eax
jmp 0x1009ad1c
test eax, 0x2000
je 0x1009a672
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
mov edx, esi
call fcn.10099d30
add esp, 4
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
xor eax, eax
mov ecx, dword [esp + 0xc]
cmp byte [edi + 4], 0x74
movzx edx, byte [edi + 4]
setne al
push eax
push dword [esp + 0x34]
push dword [esp + 0x2c]
call fcn.10098800
add esp, 0xc
test byte [edi + 8], 0x20
je 0x1009ad18
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
push 1
mov eax, dword [eax]
mov edx, eax
mov dword [esp + 0x30], eax
call fcn.10098680
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
test edi, edi
jne 0x1009abf2
lea esi, [eax + 7]
jmp 0x1009ad1c
cmp dword [esi + 0x2c], 0
je 0x1009a69f
mov ecx, dword [esp + 0x38]
mov edx, esi
push ecx
mov ecx, dword [esp + 0x10]
call fcn.1009b170
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100d22d5
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 4]
sub eax, 0x73
je 0x1009a9f4
sub eax, 1
je 0x1009a8c9
sub eax, 1
je 0x1009a9f4
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x40], edx
push edx
lea eax, [edx + 1]
mov edx, 0x6e
mov dword [esp + 0x34], eax
inc eax
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.1005fc90
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x1009a6fb
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x1009a6f2
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xc]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x7c], 0
mov dword [esp + 0x74], 0
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
mov dword [esp + 0x7c], 0
call fcn.1009e7b0
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x1009ad18
push eax
push dword [esp + 0x30]
lea edx, [eax + 0x6e]
mov ecx, edi
call fcn.1005fc90
mov dword [esi + 0x18], eax
mov edx, esi
mov eax, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.1009e7b0
mov dword [esp + 0x28], eax
add esp, 0xc
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x30], eax
movzx eax, word [eax + 6]
cmp word [esi + 6], ax
jle 0x1009a7c1
mov word [esi + 6], ax
mov edx, dword [esi + 0x38]
test edx, edx
je 0x1009a7d1
mov ecx, dword [esp + 0x14]
call fcn.100755f0
mov eax, dword [esp + 0x10]
mov ecx, edi
mov dword [esi + 0x38], eax
call fcn.10060150
mov esi, eax
mov ecx, edi
mov dword [esp + 0x10], esi
call fcn.10060150
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
push esi
mov dword [esp + 0x24], eax
call fcn.10099a40
add esp, 4
mov edx, 0x25
mov ecx, edi
push esi
push dword [esp + 0x40]
call fcn.1005fc90
mov ecx, dword [esp + 0x14]
call fcn.1007c100
mov esi, eax
mov edx, 0x7c
push esi
push dword [esp + 0x48]
mov ecx, edi
call fcn.1005fc90
mov ecx, dword [esp + 0x28]
mov edx, 0x1d
push 0
push esi
push dword [esp + 0x38]
mov edi, eax
push dword [esp + 0x48]
call fcn.10060040
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.1007c120
push dword [esp + 0x30]
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x64]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
push esi
push eax
push 0
push 0
push dword [esp + 0x70]
call fcn.10097a40
mov edx, esi
mov esi, dword [esp + 0x50]
mov ecx, esi
call fcn.100601a0
push edi
mov edi, dword [esp + 0x78]
mov edx, 7
push edi
call fcn.1005fc90
mov edx, dword [esp + 0x50]
add esp, 0x40
mov ecx, esi
call fcn.100601a0
lea eax, [edi + 1]
mov edx, 0x72
push 0
push eax
call fcn.1005fc90
push 0
push edi
mov edx, 0x72
mov ecx, esi
call fcn.1005fc90
add esp, 0x10
jmp 0x1009a614
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x1a0]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
push edx
mov edx, ecx
mov ecx, eax
call fcn.1009e7b0
mov ecx, eax
mov dword [esi + 0x38], 0
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x1009ad18
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x1009a960
push ecx
mov edx, 0x16
mov ecx, edi
call fcn.1005fc20
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x1009a960
push ecx
inc ecx
mov edx, 0x95
push ecx
push dword [esi + 0xc]
mov ecx, edi
call fcn.1005fb40
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, esi
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.1009e7b0
mov cx, word [esi + 6]
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x30], eax
mov dx, word [eax + 6]
call fcn.10045610
mov edx, dword [esp + 0x20]
mov word [esi + 6], ax
mov ecx, dword [edx + 0x38]
test ecx, ecx
je 0x1009a9da
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x3c]
call fcn.100769f0
test eax, eax
je 0x1009a9da
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x1009a9da
cdq
push edx
push eax
call fcn.10045670
add esp, 8
cmp word [esi + 6], ax
jle 0x1009a9da
mov word [esi + 6], ax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1009a610
mov edx, eax
mov ecx, edi
call fcn.100604f0
jmp 0x1009a610
cmp cl, 1
jne 0x1009aa03
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
jmp 0x1009aa43
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x40], edx
push edx
lea eax, [edx + 1]
mov edx, 0x6e
mov dword [ecx + 0x28], eax
mov ecx, edi
call fcn.1005fc90
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x1009aa3b
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x1009aa32
or dword [ecx + 8], 0x20
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xc]
mov byte [esp + 0x84], 1
mov dword [esp + 0x94], 0
mov dword [esp + 0x8c], 0
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
mov dword [esp + 0x94], 0
call fcn.1009e7b0
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x1009ad18
cmp byte [esi + 4], 0x75
mov edx, esi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x10], eax
sete al
inc al
mov dword [esi + 0x38], ecx
mov byte [esp + 0x84], al
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x1a0]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.1009e7b0
mov edx, dword [esi + 0x2c]
add esp, 4
mov dword [esp + 0x1c], eax
test edx, edx
je 0x1009aaf8
mov ecx, dword [esp + 0x14]
call fcn.10076590
cmp byte [esi + 4], 0x73
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], 0
jne 0x1009ab24
mov dx, word [eax + 6]
mov cx, word [esi + 6]
call fcn.10045610
mov word [esi + 6], ax
mov edx, dword [esi + 0x38]
test edx, edx
je 0x1009ab34
mov ecx, dword [esp + 0x14]
call fcn.100755f0
cmp byte [esp + 0x40], 1
mov eax, dword [esp + 0x10]
mov dword [esi + 0x38], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
je 0x1009a610
mov ecx, edi
call fcn.10060150
mov esi, eax
mov ecx, edi
mov dword [esp + 0x10], esi
call fcn.10060150
mov edx, dword [esp + 0x28]
mov edi, eax
mov ecx, dword [esp + 0xc]
push esi
call fcn.10099a40
add esp, 4
mov edx, 0x25
push esi
push dword [esp + 0x40]
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.1005fc90
push dword [esp + 0x18]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 0x88]
push edi
push eax
push 0
push 0
push dword [esp + 0x58]
call fcn.10097a40
mov ecx, dword [esp + 0x38]
mov edx, edi
call fcn.100601a0
mov edi, dword [esp + 0x5c]
mov edx, 7
push esi
push edi
mov esi, ecx
call fcn.1005fc90
mov edx, dword [esp + 0x38]
mov ecx, esi
call fcn.100601a0
push 0
push edi
mov edx, 0x72
call fcn.1005fc90
add esp, 0x30
jmp 0x1009a614
lea eax, [edi + 0x14]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x2c], eax
jle 0x1009ac4e
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0xc]
nop dword [eax]
push eax
mov edx, esi
mov ecx, edi
call fcn.10099ba0
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x1009ac30
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
add ecx, 4
inc eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x2c]
jl 0x1009ac10
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
nop dword [eax]
nop word [eax + eax]
add eax, 0x14
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], eax
nop
mov eax, dword [eax]
test eax, eax
js 0x1009acfe
mov ecx, dword [esi]
cmp byte [ecx + 0x49], 0
je 0x1009ac89
mov ecx, 0x106159c4
jmp 0x1009ac92
mov ecx, dword [esi + 0x58]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 8], edx
inc dword [edi]
mov ecx, dword [esi]
cmp byte [ecx + 0x49], 0
je 0x1009acb3
push edi
mov edx, 0xfffffff7
call fcn.100606a0
add esp, 4
jmp 0x1009acdb
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x1009acd4
push 0xfffffffffffffff7
push edi
mov edx, eax
mov ecx, esi
call fcn.10060830
add esp, 8
jmp 0x1009acdb
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
mov dword [eax], 0xffffffff
add eax, 4
mov dword [esp + 0x24], eax
cmp ecx, 2
jl 0x1009ac70
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1009ac60
mov ecx, edi
call fcn.10098730
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1009ad48
push 1
mov edx, eax
mov ecx, edi
call fcn.10096b90
add esp, 4
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.100d22d5
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 4]
sub eax, 0x74
je 0x1009ad86
sub eax, 1
je 0x1009ad7f
sub eax, 1
je 0x1009ad78
mov eax, str.UNION
jmp 0x1009ad8b
mov eax, str.INTERSECT
jmp 0x1009ad8b
mov eax, str.EXCEPT
jmp 0x1009ad8b
mov eax, str.UNION_ALL
push eax
test edx, edx
mov eax, str.ORDER_BY
mov esi, str.LIMIT
cmove eax, esi
push eax
push str._s_clause_should_come_after__s_not_before
push ecx
call fcn.10044360
add esp, 0x10
mov esi, 1
jmp 0x1009ad20