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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
mov ebx, edx
mov dword [esp + 0x18], 0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], ebx
cmp dword [ebx + 0x44], 0
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
mov esi, dword [edi + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 0
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
je 0x100850d6
push str.cannot_use_window_functions_in_recursive_queries
push edi
call fcn.10012a20
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [eax + 0x168]
test ecx, ecx
je 0x10085159
cmp byte [eax + 0xb1], 0
jne 0x10085159
cmp byte [edi + 0xd0], 0
jne 0x10085159
push dword [edi + 0xf8]
push 0
push 0
push 0
push 0x21
push dword [eax + 0x16c]
call ecx
add esp, 0x18
mov dword [esp + 0x34], eax
cmp eax, 1
jne 0x1008512e
push str.not_authorized
push edi
call fcn.10012a20
mov eax, dword [esp + 0x3c]
mov dword [edi + 0xc], 0x17
jmp 0x1008514e
test eax, eax
je 0x10085159
cmp eax, 2
je 0x10085151
push str.authorizer_malfunction
push edi
call fcn.10012a20
mov dword [edi + 0xc], 1
mov eax, 1
add esp, 8
test eax, eax
jne 0x1008584d
mov eax, dword [edi + 0x38]
mov ecx, 0x140
dec eax
mov edx, ebx
mov dword [edi + 0x38], eax
mov word [ebx + 2], cx
mov ecx, edi
push eax
mov dword [esp + 0x28], eax
call fcn.10084a90
mov eax, dword [ebx + 0x3c]
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x34], 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 0x100851de
add ecx, 0x30
nop word [eax + eax]
test byte [ecx], 0x20
jne 0x100851cf
inc eax
add ecx, 0x48
cmp eax, edx
jl 0x100851c0
jmp 0x100851de
mov ecx, dword [esp + 0x28]
lea eax, [eax + eax*8]
mov eax, dword [ecx + eax*8 + 0x34]
mov dword [esp + 0x20], eax
mov edx, dword [edi + 0x28]
mov dword [esp + 0x10], edx
lea eax, [edx + 1]
mov dword [edi + 0x28], eax
cmp byte [ebx], 0x86
jne 0x10085206
xor ecx, ecx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x1c], ecx
setne cl
add ecx, 5
inc eax
mov dword [edi + 0x28], eax
jmp 0x10085211
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 + 0x44], cl
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x78], ecx
jg 0x10085269
push dword [esp + 0x2c]
mov edx, 0x78
mov ecx, esi
push eax
push dword [esp + 0x28]
call fcn.10033da0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x100852a0
mov ebx, dword [esp + 0x20]
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], ebx
mov ebx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x2c]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x1c], 0
je 0x10085393
push ecx
mov edx, ebx
mov ecx, edi
call fcn.10084e80
mov edx, dword [esi + 0x74]
add esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
add eax, 2
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], edx
jg 0x100852eb
push 0
push eax
push dword [esp + 0x18]
mov edx, 0x74
mov ecx, esi
call fcn.10033da0
add esp, 0xc
mov edx, eax
jmp 0x10085322
mov ebx, dword [esp + 0x10]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x10085349
mov edx, dword [esp + 0x2c]
push edx
mov edx, 0xfffffff7
call fcn.10034850
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x5c], eax
jmp 0x100853e2
test edx, edx
jns 0x10085351
mov edx, dword [esi + 0x74]
dec edx
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov edx, dword [esp + 0x2c]
je 0x1008537e
push 0xfffffffffffffff7
push edx
mov edx, eax
mov ecx, esi
call fcn.10034ac0
mov eax, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x5c], eax
jmp 0x100853e2
test edx, edx
je 0x10085389
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
jmp 0x100853e2
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100853b3
push 0
push dword [esp + 0x30]
mov ecx, esi
push edx
mov edx, 0x74
call fcn.10033da0
add esp, 0xc
jmp 0x100853e2
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 + 0x2c]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10085448
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x1008540a
push 0
push 0
push eax
mov edx, 0x74
mov ecx, esi
call fcn.10033da0
add esp, 0xc
mov edx, eax
jmp 0x10085441
mov edi, dword [esp + 0x30]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
or dword [ebx + 4], 0x20
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x30], 0
nop
test byte [ebx + 4], 8
jne 0x1008581f
mov eax, dword [ebx + 0x34]
mov byte [ebx], 0x87
test dword [eax + 4], 0x2000
je 0x1008546f
mov ebx, eax
test ebx, ebx
jne 0x10085450
mov eax, dword [ebx + 0x34]
push str.SETUP
push 1
push edi
mov dword [esp + 0x3c], eax
mov dword [eax + 0x38], 0
call fcn.10034330
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x50]
add esp, 0xc
mov ecx, edi
push eax
call fcn.1008ba50
mov edx, dword [esp + 0x34]
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x38], ecx
test eax, eax
jne 0x1008582d
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x2c], ecx
cmp dword [esi + 0x78], ecx
jg 0x100854dc
mov edx, dword [esp + 0x24]
mov ecx, esi
push eax
push edx
push dword [esp + 0x18]
lea edx, [eax + 0x26]
call fcn.10033da0
add esp, 0xc
mov dword [esp + 0x2c], eax
jmp 0x1008550f
mov edx, dword [esp + 0x10]
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], 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 0x10085530
push 0
push 0
push dword [esp + 0x28]
mov edx, 0x87
mov ecx, esi
call fcn.10033da0
add esp, 0xc
jmp 0x10085563
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x87
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 0x100855c2
mov edx, dword [eax]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x10085597
push dword [esp + 0x28]
mov ecx, esi
push edx
push dword [esp + 0x18]
mov edx, 0x5d
call fcn.10033da0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x1008561d
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 0xc], edx
mov edx, edi
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], edi
jmp 0x10085611
cmp dword [esi + 0x78], ecx
jg 0x100855e6
push 0
push dword [esp + 0x2c]
mov edx, 0x85
mov ecx, esi
push dword [esp + 0x18]
call fcn.10033da0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x1008561d
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x28]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x85
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1008563b
push 0
push 0
push edx
mov edx, 0x81
mov ecx, esi
call fcn.10033da0
add esp, 0xc
jmp 0x1008566e
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], 0x81
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
dec dword [edi + 0x38]
mov eax, dword [esp + 0x34]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x28], edx
test eax, eax
jle 0x100856d4
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100856a1
push 1
push edx
push eax
mov edx, 0x31
mov ecx, esi
call fcn.10033da0
mov edx, dword [esp + 0x34]
add esp, 0xc
jmp 0x100856d4
mov edi, dword [esp + 0x34]
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 + 0x14]
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 + 0x24]
mov ecx, edi
push edx
push dword [ebp + 8]
mov edx, dword [esp + 0x24]
push 0
push 0
push dword [esp + 0x34]
call fcn.100821f0
mov edx, dword [esp + 0x54]
add esp, 0x18
test edx, edx
je 0x1008574d
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1008571a
push 0
push dword [esp + 0x28]
mov ecx, esi
push edx
mov edx, 0x3c
call fcn.10033da0
add esp, 0xc
jmp 0x1008574d
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], edx
mov edx, dword [esp + 0x24]
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 0x1008576b
push edx
mov edx, esi
call fcn.10034550
add esp, 4
jmp 0x10085774
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
push str.RECURSIVE_STEP
push 1
push edi
mov dword [ebx + 0x34], 0
call fcn.10034330
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x50]
add esp, 0xc
mov ecx, edi
push eax
call fcn.1008ba50
mov eax, dword [esp + 0x34]
add esp, 4
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x34], eax
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100857c7
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.10033da0
add esp, 0xc
jmp 0x100857f6
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 + 0x24]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x10085814
push edx
mov edx, esi
call fcn.10034550
add esp, 4
jmp 0x1008582d
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x1008582d
push str.recursive_aggregate_queries_not_supported
push edi
call fcn.10012a20
add esp, 8
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x1008583f
mov ecx, dword [edi]
call fcn.1004d0f0
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret