Function at 0x10076230
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 + 0x30], eax
mov eax, dword [ebx + 0x1c]
mov esi, dword [edi + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], 0
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
je 0x10076286
push str.cannot_use_window_functions_in_recursive_queries
push edi
call fcn.10008be0
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.10051b80
add esp, 0xc
test eax, eax
jne 0x1007697c
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 + 0x28], eax
call fcn.10075ec0
mov eax, dword [ebx + 0x3c]
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x38], 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 0x1007631f
add ecx, 0x30
test byte [ecx], 0x20
jne 0x10076310
inc eax
add ecx, 0x48
cmp eax, edx
jl 0x10076301
jmp 0x1007631f
mov ecx, dword [esp + 0x30]
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], 0x85
jne 0x10076347
xor ecx, ecx
mov dword [esp + 0x34], eax
cmp dword [esp + 0x1c], ecx
setne cl
add ecx, 5
inc eax
mov dword [edi + 0x28], eax
jmp 0x10076352
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 0x100763aa
push dword [esp + 0x2c]
mov edx, 0x77
mov ecx, esi
push eax
push dword [esp + 0x28]
call fcn.10029250
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x100763e1
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], 0x77
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x1c], 0
je 0x100764d8
push ecx
mov edx, ebx
mov ecx, edi
call fcn.10076090
mov edx, dword [esi + 0x74]
mov edi, eax
mov eax, dword [esp + 0x20]
add esp, 4
mov eax, dword [eax]
add eax, 2
mov dword [esp + 0x30], eax
cmp dword [esi + 0x78], edx
jg 0x1007642a
push 0
push eax
push dword [esp + 0x18]
mov edx, 0x73
mov ecx, esi
call fcn.10029250
add esp, 0xc
mov edx, eax
jmp 0x10076461
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 + 0x30]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x73
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x53], 0
je 0x10076492
cmp dword [eax + 0x210], 0
jne 0x100764ce
test edi, edi
je 0x100764ce
add dword [edi], 0xffffffff
jne 0x100764ce
mov ecx, dword [edi + 0xc]
mov edx, edi
call fcn.10004cc0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
jmp 0x10076527
test edx, edx
jns 0x1007649a
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]
je 0x100764c3
push 0xfffffffffffffff7
push edi
mov edx, eax
mov ecx, esi
call fcn.1002a2c0
mov eax, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x5c], eax
jmp 0x10076527
test edi, edi
je 0x100764ce
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xf7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
jmp 0x10076527
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100764f8
push 0
push dword [esp + 0x30]
mov ecx, esi
push edx
mov edx, 0x73
call fcn.10029250
add esp, 0xc
jmp 0x10076527
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], 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 + 0x34]
test edx, edx
je 0x10076589
mov edi, dword [esi + 0x74]
cmp dword [esi + 0x78], edi
jg 0x1007654f
push 0
push 0
push edx
mov edx, 0x73
mov ecx, esi
call fcn.10029250
add esp, 0xc
mov edi, eax
jmp 0x10076582
mov ebx, dword [esp + 0x18]
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
or dword [ebx + 4], 0x20
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x30], 0
mov edi, ebx
test byte [edi + 4], 8
jne 0x1007698e
mov eax, dword [edi + 0x34]
mov byte [edi], 0x86
test dword [eax + 4], 0x2000
je 0x100765b1
mov edi, eax
test edi, edi
jne 0x10076592
mov eax, dword [edi + 0x34]
push str.SETUP
push 1
push dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [eax + 0x38], 0
call fcn.10029900
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
call fcn.1007c270
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [ecx + 0x38], ebx
test eax, eax
jne 0x1007695c
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x30], ecx
cmp dword [esi + 0x78], ecx
jg 0x1007661f
mov edx, dword [esp + 0x24]
mov ecx, esi
push eax
push edx
push dword [esp + 0x18]
lea edx, [eax + 0x26]
call fcn.10029250
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x10076652
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 0x10076673
push 0
push 0
push dword [esp + 0x28]
mov edx, 0x86
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x100766a6
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], 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 0x10076705
mov edx, dword [eax]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x100766da
push dword [esp + 0x28]
mov ecx, esi
push edx
push dword [esp + 0x18]
mov edx, 0x5c
call fcn.10029250
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x10076760
mov ebx, 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, ebx
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 4], ebx
jmp 0x10076754
cmp dword [esi + 0x78], ecx
jg 0x10076729
push 0
push dword [esp + 0x2c]
mov edx, 0x84
mov ecx, esi
push dword [esp + 0x18]
call fcn.10029250
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x10076760
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x28]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x84
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x1007677e
push 0
push 0
push edx
mov edx, 0x80
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x100767b1
mov ebx, dword [esp + 0x18]
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 + 0x14]
mov eax, dword [esp + 0x38]
dec dword [edx + 0x38]
mov edx, dword [edx + 0x38]
mov dword [esp + 0x34], edx
test eax, eax
jle 0x1007681b
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x100767e8
push 1
push edx
push eax
mov edx, 0x31
mov ecx, esi
call fcn.10029250
mov edx, dword [esp + 0x40]
add esp, 0xc
jmp 0x1007681b
mov ebx, dword [esp + 0x38]
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 + 0x18]
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, dword [esp + 0x18]
push edx
push dword [ebp + 8]
mov edx, ebx
push 0
push 0
push dword [esp + 0x34]
call fcn.10073a40
mov edx, dword [esp + 0x54]
add esp, 0x18
test edx, edx
je 0x10076894
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x10076861
push 0
push dword [esp + 0x28]
mov ecx, esi
push edx
mov edx, 0x3c
call fcn.10029250
add esp, 0xc
jmp 0x10076894
mov ebx, dword [esp + 0x18]
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 + 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x100768b2
push edx
mov edx, esi
call fcn.10029c70
add esp, 4
jmp 0x100768bb
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 + 0x1c]
mov dword [edi + 0x34], 0
call fcn.10029900
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x50]
add esp, 0xc
mov edx, ebx
push eax
call fcn.1007c270
mov eax, dword [esp + 0x30]
add esp, 4
mov edx, dword [esp + 0x30]
mov dword [edi + 0x34], eax
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x10076911
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.10029250
add esp, 0xc
jmp 0x10076940
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 0x10076983
push edx
mov edx, esi
call fcn.10029c70
add esp, 4
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x1007696e
mov ecx, dword [esi]
call fcn.10043810
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
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x1007695c
mov esi, dword [esp + 0x14]
push str.recursive_aggregate_queries_not_supported
push esi
call fcn.10008be0
add esp, 8
jmp 0x10076960