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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
mov ebx, edx
mov dword [esp + 0xc], 0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], 0
cmp dword [ebx + 0x44], 0
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x1c]
mov esi, dword [edi + 8]
mov dword [esp + 0x10], edi
mov eax, dword [eax]
mov dword [esp + 0x24], eax
je 0x100a38b2
push str.cannot_use_window_functions_in_recursive_queries
push edi
call fcn.1010dfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov edx, 0x21
call fcn.100c4370
add esp, 0xc
test eax, eax
jne 0x100a3eea
dec dword [edi + 0x38]
mov ecx, 0x140
mov eax, dword [edi + 0x38]
mov edx, ebx
mov word [ebx + 2], cx
mov ecx, edi
push eax
mov dword [esp + 0x1c], eax
call fcn.100a40c0
mov eax, dword [ebx + 0x3c]
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov edx, dword [ecx]
mov dword [esp + 0x1c], eax
xor eax, eax
test edx, edx
jle 0x100a394e
add ecx, 0x30
nop dword [eax]
test byte [ecx], 0x20
jne 0x100a393f
inc eax
add ecx, 0x48
cmp eax, edx
jl 0x100a3930
jmp 0x100a394e
mov ecx, dword [esp + 0x2c]
lea eax, [eax + eax*8]
mov eax, dword [ecx + eax*8 + 0x34]
mov dword [esp + 0x14], eax
mov edx, dword [edi + 0x28]
mov dword [esp + 0xc], edx
lea eax, [edx + 1]
mov dword [edi + 0x28], eax
cmp byte [ebx], 0x85
jne 0x100a3976
xor ecx, ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0x1c], ecx
setne cl
add ecx, 5
inc eax
mov dword [edi + 0x28], eax
jmp 0x100a3981
mov ecx, dword [esp + 0x1c]
neg ecx
sbb ecx, ecx
add ecx, 8
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov byte [esp + 0x3c], cl
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
cmp dword [esi + 0x78], ecx
jg 0x100a39d9
push dword [esp + 0x24]
mov edx, 0x77
mov ecx, esi
push eax
push dword [esp + 0x1c]
call fcn.100ec0c0
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x100a3a10
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x77
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x1c], 0
je 0x100a3a4c
push ecx
mov edx, ebx
mov ecx, edi
call fcn.100a3f10
mov edi, dword [esp + 0x20]
add esp, 4
mov edx, 0x73
mov ecx, esi
push 0xfffffffffffffff7
push eax
mov eax, dword [edi]
push 0
add eax, 2
push eax
push dword [esp + 0x1c]
call fcn.100ebbd0
add esp, 0x14
mov dword [esp + 0x54], edi
jmp 0x100a3a9b
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100a3a6c
push 0
push dword [esp + 0x28]
mov ecx, esi
push edx
mov edx, 0x73
call fcn.100ec0c0
add esp, 0xc
jmp 0x100a3a9b
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x73
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x28]
test edx, edx
je 0x100a3afd
mov edi, dword [esi + 0x74]
cmp dword [esi + 0x78], edi
jg 0x100a3ac3
push 0
push 0
push edx
mov edx, 0x73
mov ecx, esi
call fcn.100ec0c0
add esp, 0xc
mov edi, eax
jmp 0x100a3af6
mov edx, dword [esp + 0x28]
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x73
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [ebx + 0x14], edi
or dword [ebx + 4], 0x20
mov dword [ebx + 0x30], 0
mov edi, ebx
test byte [edi + 4], 8
jne 0x100a3efc
mov eax, dword [edi + 0x34]
mov byte [edi], 0x86
test dword [eax + 4], 0x2000
je 0x100a3b25
mov edi, eax
test edi, edi
jne 0x100a3b06
mov eax, dword [edi + 0x34]
push str.SETUP
push 1
push dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [eax + 0x38], 0
call fcn.100eba30
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.1009be50
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [ecx + 0x38], ebx
test eax, eax
jne 0x100a3eca
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x78], ecx
jg 0x100a3b93
mov edx, dword [esp + 0x18]
mov ecx, esi
push eax
push edx
push dword [esp + 0x14]
lea edx, [eax + 0x26]
call fcn.100ec0c0
add esp, 0xc
mov dword [esp + 0x2c], eax
jmp 0x100a3bc6
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x26
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100a3be7
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x86
mov ecx, esi
call fcn.100ec0c0
add esp, 0xc
jmp 0x100a3c1a
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x74]
test eax, eax
je 0x100a3c7b
mov eax, dword [eax]
inc eax
mov dword [esp + 0x28], eax
cmp dword [esi + 0x78], ecx
jg 0x100a3c4e
push dword [esp + 0x20]
mov edx, 0x5c
mov ecx, esi
push eax
push dword [esp + 0x14]
call fcn.100ec0c0
add esp, 0xc
jmp 0x100a3cce
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x100a3cc6
cmp dword [esi + 0x78], ecx
jg 0x100a3c9b
push 0
push dword [esp + 0x24]
mov edx, 0x84
mov ecx, esi
push dword [esp + 0x14]
call fcn.100ec0c0
add esp, 0xc
jmp 0x100a3cce
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x84
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0xc]
cmp dword [esi + 0x78], ecx
jg 0x100a3cf0
push 0
push 0
push edx
mov edx, 0x80
mov ecx, esi
call fcn.100ec0c0
add esp, 0xc
jmp 0x100a3d23
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
dec dword [edx + 0x38]
mov edx, dword [edx + 0x38]
mov dword [esp + 0x28], edx
test eax, eax
jle 0x100a3d8d
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100a3d5a
push 1
push edx
push eax
mov edx, 0x31
mov ecx, esi
call fcn.100ec0c0
mov edx, dword [esp + 0x34]
add esp, 0xc
jmp 0x100a3d8d
mov edx, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push dword [ebp + 8]
mov edx, ebx
push 0
push 0
push dword [esp + 0x28]
call fcn.100a5930
mov edx, dword [esp + 0x4c]
add esp, 0x18
test edx, edx
je 0x100a3e02
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100a3dd3
push 0
push dword [esp + 0x1c]
mov ecx, esi
push edx
mov edx, 0x3c
call fcn.100ec0c0
add esp, 0xc
jmp 0x100a3e02
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x3c
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x100a3e20
push edx
mov edx, esi
call fcn.100eb740
add esp, 4
jmp 0x100a3e29
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
push str.RECURSIVE_STEP
push 1
push dword [esp + 0x18]
mov dword [edi + 0x34], 0
call fcn.100eba30
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x48]
add esp, 0xc
mov edx, ebx
push eax
call fcn.1009be50
mov eax, dword [esp + 0x28]
add esp, 4
mov edx, dword [esp + 0x2c]
mov dword [edi + 0x34], eax
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100a3e7f
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.100ec0c0
add esp, 0xc
jmp 0x100a3eae
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x100a3ef1
push edx
mov edx, esi
call fcn.100eb740
add esp, 4
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x100a3edc
mov ecx, dword [esi]
call fcn.100d2ef0
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x100a3eca
mov esi, dword [esp + 0x10]
push str.recursive_aggregate_queries_not_supported
push esi
call fcn.1010dfc0
add esp, 8
jmp 0x100a3ece