Function at 0x4cd4d0
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 0x4cd517
push str.cannot_use_window_functions_in_recursive_queries
push ebp
call fcn.004f3220
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.004e7a40
add esp, 0x14
test eax, eax
jne 0x4cdb1e
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.004b21b0
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 0x4cd5ae
lea ecx, [edi + 0x30]
lea ebx, [ebx]
test byte [ecx], 0x20
jne 0x4cd59f
inc eax
add ecx, 0x48
cmp eax, edx
jl 0x4cd590
jmp 0x4cd5aa
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 0x4cd5d6
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 0x4cd5dd
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 0x4cd631
push dword [esp + 0x24]
push edx
push dword [esp + 0x20]
push 0x78
push esi
call fcn.004ceed0
mov edx, dword [esp + 0x38]
add esp, 0x14
jmp 0x4cd664
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 0x4cd699
push 1
push ebx
push ebp
call fcn.004d74b0
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.0051a490
mov eax, dword [esp + 0x3c]
add esp, 0x28
mov dword [esp + 0x50], eax
jmp 0x4cd6dd
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4cd6b2
push 0
push edx
push edi
push 0x74
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x4cd6dd
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 0x4cd73b
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x4cd701
push 0
push 0
push edi
push 0x74
push esi
call fcn.004ceed0
add esp, 0x14
mov edx, eax
jmp 0x4cd734
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 0x4cdaef
mov eax, dword [edi + 0x34]
mov byte [edi], 0x87
test dword [eax + 4], 0x2000
je 0x4cd763
mov edi, eax
test edi, edi
jne 0x4cd744
mov eax, dword [edi + 0x34]
push str.SETUP
push 1
push ebp
mov dword [esp + 0x30], eax
mov dword [eax + 0x38], 0
call fcn.00522260
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x34]
push ebp
call fcn.005117c0
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx + 0x38], ebx
test eax, eax
jne 0x4cdafd
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x28], ecx
cmp dword [esi + 0x78], ecx
jg 0x4cd7c7
mov edx, dword [esp + 0x1c]
push eax
push edx
mov edx, dword [esp + 0x18]
push edx
push 0x26
push esi
call fcn.004ceed0
add esp, 0x14
mov dword [esp + 0x28], eax
jmp 0x4cd7fa
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 0x4cd81a
push 0
push 0
push dword [esp + 0x20]
push 0x87
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x4cd84d
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 0x4cd8aa
mov eax, dword [eax]
inc eax
mov dword [esp + 0x58], eax
cmp dword [esi + 0x78], ecx
jg 0x4cd881
push dword [esp + 0x20]
push eax
push dword [esp + 0x18]
push 0x5d
push esi
call fcn.004ceed0
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x4cd904
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 0x4cd8f4
cmp dword [esi + 0x78], ecx
jg 0x4cd8cd
push 0
push dword [esp + 0x24]
push dword [esp + 0x18]
push 0x85
push esi
call fcn.004ceed0
mov edx, dword [esp + 0x24]
add esp, 0x14
jmp 0x4cd904
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 0x4cd921
push 0
push 0
push edx
push 0x81
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x4cd954
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 0x4cd9b6
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4cd983
push 1
push edx
push eax
push 0x31
push esi
call fcn.004ceed0
mov edx, dword [esp + 0x6c]
add esp, 0x14
jmp 0x4cd9b6
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.004e3d60
mov edx, dword [esp + 0x50]
add esp, 0x20
test edx, edx
je 0x4cda28
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4cd9f5
push 0
push dword [esp + 0x20]
push edx
push 0x3c
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x4cda28
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 0x4cda46
push edx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x4cda4f
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.00522260
lea eax, [esp + 0x44]
push eax
push ebx
push ebp
call fcn.005117c0
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 0x4cda97
push 0
push edx
push 0
push 0xb
push esi
call fcn.004ceed0
add esp, 0x14
jmp 0x4cdac6
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 0x4cdae4
push edx
push esi
push ecx
call fcn.004e0f70
add esp, 0xc
jmp 0x4cdafd
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x4cdafd
push str.recursive_aggregate_queries_not_supported
push ebp
call fcn.004f3220
add esp, 8
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4cdb10
push eax
push dword [ebp]
call fcn.004b85c0
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