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

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x50]
xor edx, edx
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov eax, dword [ebx + 0x1c]
push edi
mov edi, dword [ebx + 0x20]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], edx
cmp dword [ebx + 0x44], edx
je 0x4fe537
push str.cannot_use_window_functions_in_recursive_queries
push ebp
call fcn.00524240
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push 0
push 0
push 0
push 0x21
push ebp
call fcn.00518a60
add esp, 0x14
test eax, eax
jne 0x4feb3e
dec dword [ebp + 0x38]
mov ecx, 0x140
mov eax, dword [ebp + 0x38]
push eax
push ebx
push ebp
mov dword [esp + 0x28], eax
mov word [ebx + 2], cx
call fcn.004e31d0
mov eax, dword [ebx + 0x3c]
add esp, 0xc
mov ecx, dword [ebx + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov edx, dword [edi]
mov dword [esp + 0x14], ecx
test edx, edx
jle 0x4fe5ce
lea ecx, [edi + 0x30]
lea ebx, [ebx]
test byte [ecx], 0x20
jne 0x4fe5bf
inc eax
add ecx, 0x48
cmp eax, edx
jl 0x4fe5b0
jmp 0x4fe5ca
lea eax, [eax + eax*8]
mov eax, dword [edi + eax*8 + 0x34]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 0x28]
mov dword [esp + 0x10], edi
lea eax, [edi + 1]
mov dword [ebp + 0x28], eax
cmp byte [ebx], 0x86
jne 0x4fe5f6
xor ecx, ecx
mov dword [esp + 0x28], eax
cmp dword [esp + 0x14], ecx
setne cl
add ecx, 5
inc eax
mov dword [ebp + 0x28], eax
jmp 0x4fe5fd
neg ecx
sbb ecx, ecx
add ecx, 8
inc dword [ebp + 0x2c]
mov edx, dword [ebp + 0x2c]
mov byte [esp + 0x38], cl
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], edx
cmp dword [esi + 0x78], ecx
jg 0x4fe651
push dword [esp + 0x24]
push edx
push dword [esp + 0x20]
push 0x78
push esi
call fcn.004ffef0
mov edx, dword [esp + 0x38]
add esp, 0x14
jmp 0x4fe684
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 + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x78
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x14], 0
je 0x4fe6b9
push 1
push ebx
push ebp
call fcn.005084d0
push 0xfffffffffffffff7
push eax
mov eax, dword [esp + 0x28]
push 0
mov eax, dword [eax]
add eax, 2
push eax
push edi
push 0x74
push esi
call fcn.0054b4b0
mov eax, dword [esp + 0x3c]
add esp, 0x28
mov dword [esp + 0x50], eax
jmp 0x4fe6fd
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4fe6d2
push 0
push edx
push edi
push 0x74
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x4fe6fd
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4fe75b
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x4fe721
push 0
push 0
push edi
push 0x74
push esi
call fcn.004ffef0
add esp, 0x14
mov edx, eax
jmp 0x4fe754
mov ebx, dword [esp + 0x5c]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 4], edi
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], edx
or dword [ebx + 4], 0x20
mov dword [ebx + 0x30], 0
mov edi, ebx
test byte [edi + 4], 8
jne 0x4feb0f
mov eax, dword [edi + 0x34]
mov byte [edi], 0x87
test dword [eax + 4], 0x2000
je 0x4fe783
mov edi, eax
test edi, edi
jne 0x4fe764
mov eax, dword [edi + 0x34]
push str.SETUP
push 1
push ebp
mov dword [esp + 0x30], eax
mov dword [eax + 0x38], 0
call fcn.00553280
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x34]
push ebp
call fcn.005427e0
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx + 0x38], ebx
test eax, eax
jne 0x4feb1d
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x28], ecx
cmp dword [esi + 0x78], ecx
jg 0x4fe7e7
mov edx, dword [esp + 0x1c]
push eax
push edx
mov edx, dword [esp + 0x18]
push edx
push 0x26
push esi
call fcn.004ffef0
add esp, 0x14
mov dword [esp + 0x28], eax
jmp 0x4fe81a
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 + 0x1c]
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 0x4fe83a
push 0
push 0
push dword [esp + 0x20]
push 0x87
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x4fe86d
mov edx, 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], 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 + 0x14]
mov ecx, dword [esi + 0x74]
test eax, eax
je 0x4fe8ca
mov eax, dword [eax]
inc eax
mov dword [esp + 0x58], eax
cmp dword [esi + 0x78], ecx
jg 0x4fe8a1
push dword [esp + 0x20]
push eax
push dword [esp + 0x18]
push 0x5d
push esi
call fcn.004ffef0
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x4fe924
mov ebx, dword [esp + 0x58]
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], ebx
mov ebx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x5d
jmp 0x4fe914
cmp dword [esi + 0x78], ecx
jg 0x4fe8ed
push 0
push dword [esp + 0x24]
push dword [esp + 0x18]
push 0x85
push esi
call fcn.004ffef0
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x4fe924
mov ebp, 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 + 8], ebp
mov ebp, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x85
mov dword [eax + ecx*4 + 0xc], 0
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4fe941
push 0
push 0
push edx
push 0x81
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x4fe974
mov ebx, dword [esp + 0x5c]
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 [ebp + 0x38]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x58], edx
test eax, eax
jle 0x4fe9d6
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4fe9a3
push 1
push edx
push eax
push 0x31
push esi
call fcn.004ffef0
mov edx, dword [esp + 0x6c]
add esp, 0x14
jmp 0x4fe9d6
mov ebx, dword [esp + 0x2c]
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 + 0x5c]
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 + 0x1c]
push edx
push dword [esp + 0x68]
push 0
push 0
push dword [esp + 0x2c]
push ebx
push ebp
call fcn.00514d80
mov edx, dword [esp + 0x50]
add esp, 0x20
test edx, edx
je 0x4fea48
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4fea15
push 0
push dword [esp + 0x20]
push edx
push 0x3c
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x4fea48
mov ebx, dword [esp + 0x5c]
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 + 0x1c]
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 + 0x58]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4fea66
push edx
push esi
push ecx
call fcn.00511f90
add esp, 0xc
jmp 0x4fea6f
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
push str.RECURSIVE_STEP
push 1
push ebp
mov dword [edi + 0x34], 0
call fcn.00553280
lea eax, [esp + 0x44]
push eax
push ebx
push ebp
call fcn.005427e0
mov eax, dword [esp + 0x3c]
add esp, 0x18
mov edx, dword [esp + 0x28]
mov dword [edi + 0x34], eax
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4feab7
push 0
push edx
push 0
push 0xb
push esi
call fcn.004ffef0
add esp, 0x14
jmp 0x4feae6
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 + 0x1c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4feb04
push edx
push esi
push ecx
call fcn.00511f90
add esp, 0xc
jmp 0x4feb1d
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x4feb1d
push str.recursive_aggregate_queries_not_supported
push ebp
call fcn.00524240
add esp, 8
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4feb30
push eax
push dword [ebp]
call fcn.004e95e0
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x3c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret