Function at 0x100475a5
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
and dword [esp + 0x14], 0
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
xor ecx, ecx
mov dword [esp + 0x40], eax
and dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov eax, dword [edi]
or dword [esi + 0x18], 0xffffffff
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], 0xa2
test edx, edx
je 0x10047644
test byte [ebx + 0x18], 6
je 0x10047600
and dword [esp + 0x28], ecx
jmp 0x10047644
xor edi, edi
cmp dword [eax + 0x14], ecx
jle 0x10047640
mov ebx, dword [eax + 0x10]
mov ecx, dword [ebx]
call fcn.100262c7
test eax, eax
je 0x10047628
mov eax, dword [esp + 0x2c]
inc edi
mov edx, dword [esp + 0x28]
add ebx, 0x10
cmp edi, dword [eax + 0x14]
jl 0x1004760a
jmp 0x10047639
mov ecx, dword [esp + 0x2c]
add edi, edi
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*8 + 0xc]
mov dword [esp + 0x30], eax
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov dword [esp + 0x54], eax
test eax, eax
je 0x1004787c
xor ebx, ebx
lea ecx, [eax + 8]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
cmp dword [eax], ebx
jle 0x10047851
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x34], edx
test eax, eax
je 0x10047700
test dword [eax + 8], 0x800
je 0x10047700
mov eax, dword [eax]
xor ebx, ebx
and dword [esp + 0x3c], 0
mov dword [esp + 0x4c], eax
cmp dword [eax], ebx
jle 0x100476f2
lea edi, [eax + 0xc]
push dword [esp + 0x28]
mov edx, dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [edi]
call fcn.10047510
pop ecx
pop ecx
test eax, eax
je 0x100476ce
inc dword [esp + 0x20]
xor ecx, ecx
push 2
pop eax
mov dword [esp + 0x18], eax
inc ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov word [esi + 0x1c], bx
mov dword [esp + 0x3c], ecx
jmp 0x100476d2
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
inc ebx
add edi, 0x18
cmp ebx, dword [eax]
jl 0x10047697
mov edi, dword [esp + 0x10]
test ecx, ecx
mov ecx, dword [esp + 0x1c]
jne 0x10047835
mov edx, dword [esp + 0x34]
cmp dword [ebp + 8], 0
mov ebx, dword [esp + 0x24]
je 0x10047839
cmp dword [esp + 0x28], 0
je 0x10047714
mov eax, dword [esp + 0x30]
cmp dword [edx + 0x48], eax
jne 0x10047839
cmp dword [ebp + 8], 0
je 0x10047750
mov ebx, dword [ecx + 0xc]
mov ecx, ebx
test ebx, ebx
jne 0x10047725
mov ecx, dword [edx]
mov edx, dword [ebp + 8]
call fcn.100262c7
test eax, eax
jne 0x10047831
cmp byte [edi + 0xc0], 2
jb 0x10047750
test ebx, ebx
je 0x10047750
lea eax, [esi + 0x28]
xor edx, edx
push eax
mov ecx, edi
call fcn.1004ed1d
pop ecx
mov ecx, dword [esp + 0x18]
mov eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x10047767
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [ecx + 4]
movsx ecx, word [ecx + 0x2a]
mov dword [esp + 0x4c], eax
test ecx, ecx
jle 0x10047831
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.100262c7
test eax, eax
jne 0x10047808
mov edx, dword [esp + 0x20]
cmp edx, 1
jne 0x100477e6
mov eax, dword [esp + 0x1c]
test byte [eax + 0x24], 4
jne 0x10047808
mov eax, dword [eax + 0x34]
test eax, eax
je 0x100477e6
mov ecx, dword [eax + 4]
and dword [esp + 0x48], 0
mov dword [esp + 0x50], ecx
test ecx, ecx
jle 0x100477e6
mov ebx, dword [eax]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx]
call fcn.100262c7
test eax, eax
je 0x10047804
mov eax, dword [esp + 0x48]
add ebx, 8
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x50]
jl 0x100477be
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], edx
movsx eax, word [eax + 0x28]
cmp ebx, eax
jne 0x1004782a
or eax, 0xffffffff
jmp 0x1004782d
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
inc ebx
mov eax, dword [esp + 0x4c]
add eax, 0x10
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], eax
movsx ecx, word [edx + 0x2a]
cmp ebx, ecx
jl 0x10047784
jmp 0x10047831
movzx eax, bx
mov word [esi + 0x1c], ax
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
inc ebx
add ecx, 0x48
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
cmp ebx, dword [eax]
jl 0x10047668
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10047879
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x28], eax
test byte [ecx + 0x24], 8
je 0x10047872
or dword [esi + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [esp + 0x30], eax
mov ebx, dword [ebp + 0x10]
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x18]
jne 0x10047a51
cmp dword [ebp + 8], 0
je 0x10047a51
test eax, eax
jne 0x10047a51
xor ebx, ebx
cmp dword [edi + 0x70], ebx
je 0x100478ea
mov al, byte [edi + 0x88]
mov byte [esp + 0xf], al
cmp al, 0x79
je 0x100478d3
mov edx, dword [ebp + 8]
mov ecx, 0x100956c4
call fcn.100262c7
test eax, eax
jne 0x100478cc
mov dword [esi + 0x18], 1
jmp 0x100478e7
cmp byte [esp + 0xf], 0x78
je 0x100478ea
mov edx, dword [ebp + 8]
mov ecx, 0x100956c8
call fcn.100262c7
test eax, eax
jne 0x100478ea
and dword [esi + 0x18], ebx
mov ebx, dword [edi + 0x70]
mov edi, dword [ebp + 0x10]
test dword [edi + 0x18], 0x200
je 0x1004791b
mov edi, dword [edi + 8]
test edi, edi
je 0x1004791b
mov edx, dword [ebp + 8]
mov ecx, str.excluded
call fcn.100262c7
test eax, eax
jne 0x1004791b
mov eax, dword [edi + 0x14]
mov ebx, dword [eax + 0x18]
mov dword [esi + 0x18], 2
test ebx, ebx
je 0x10047a46
mov eax, dword [ebx + 0x48]
xor edi, edi
movsx ecx, word [ebx + 0x2a]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], 1
mov dword [esp + 0x4c], eax
test ecx, ecx
jle 0x1004797a
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.100262c7
test eax, eax
je 0x10047967
mov eax, dword [esp + 0x4c]
inc edi
movsx ecx, word [ebx + 0x2a]
add eax, 0x10
mov dword [esp + 0x4c], eax
cmp edi, ecx
jl 0x10047943
jmp 0x1004797e
movsx eax, word [ebx + 0x28]
cmp edi, eax
jne 0x10047976
or eax, 0xffffffff
mov edi, eax
jmp 0x100479ae
movsx ecx, word [ebx + 0x2a]
cmp edi, ecx
jl 0x100479a3
mov ecx, dword [ebp + 0xc]
call fcn.1004aca0
test eax, eax
je 0x10047a46
test byte [ebx + 0x24], 0x40
jne 0x10047a46
movsx ecx, word [ebx + 0x2a]
or eax, 0xffffffff
mov edi, eax
jmp 0x100479a6
or eax, 0xffffffff
cmp edi, ecx
jge 0x10047a46
inc dword [esp + 0x20]
cmp dword [esi + 0x18], 2
jne 0x100479f9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp byte [eax + 0xc0], 2
jb 0x100479da
mov word [esi + 0x1c], di
mov dword [esi + 0x28], ebx
mov dword [esp + 0x38], 0xa2
jmp 0x10047a4a
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x38], 0xa8
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x18]
add eax, edi
or dword [esi + 4], 0x400000
mov dword [esi + 0x18], eax
jmp 0x10047a4d
test edi, edi
jns 0x10047a03
mov byte [esi + 1], 0x44
jmp 0x10047a37
cmp dword [esi + 0x18], 0
jne 0x10047a21
cmp edi, 0x20
jge 0x10047a15
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
mov ecx, dword [esp + 0x10]
or dword [ecx + 0x80], eax
jmp 0x10047a37
cmp edi, 0x20
jge 0x10047a2d
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
mov ecx, dword [esp + 0x10]
or dword [ecx + 0x84], eax
mov dword [esi + 0x28], ebx
mov word [esi + 0x1c], di
mov dword [esp + 0x38], 0x4d
mov ecx, dword [esp + 0x14]
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x10047a91
cmp eax, 1
jne 0x10047a91
test ecx, ecx
je 0x10047a91
test byte [ebx + 0x18], 0x20
jne 0x10047a91
mov ecx, dword [ebp + 0xc]
call fcn.1004aca0
test eax, eax
je 0x10047a91
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
test byte [eax + 0x24], 0x40
jne 0x10047a91
inc edi
mov byte [esi + 1], 0x44
or eax, 0xffffffff
mov dword [esp + 0x20], edi
mov word [esi + 0x1c], ax
test byte [ebx + 0x18], 0x80
je 0x10047adc
test edi, edi
jne 0x10047ae0
cmp dword [ebp + 8], edi
jne 0x10047b02
mov ebx, dword [ebx + 8]
cmp dword [ebx], edi
jle 0x10047afb
lea eax, [ebx + 8]
mov dword [esp + 0x34], eax
cmp dword [eax], 0
je 0x10047ac9
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.100262c7
test eax, eax
je 0x10047b7a
mov eax, dword [esp + 0x34]
inc edi
add eax, 0x18
mov dword [esp + 0x34], eax
cmp edi, dword [ebx]
jl 0x10047aae
mov ebx, dword [ebp + 0x10]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10047b02
cmp edi, 1
je 0x10047cd3
test edi, edi
jne 0x10047c6d
mov eax, str.no_such_column
jmp 0x10047c72
mov ebx, dword [ebp + 0x10]
mov edi, dword [esp + 0x20]
mov ebx, dword [ebx + 0xc]
inc dword [esp + 0x40]
mov dword [ebp + 0x10], ebx
test ebx, ebx
jne 0x1004763c
cmp dword [ebp + 8], ebx
jne 0x10047af1
test byte [esi + 4], 0x40
je 0x10047c5d
mov ebx, dword [esp + 0x2c]
cmp byte [ebx + 0xa5], 0
jne 0x10047c3c
mov eax, dword [esp + 0x44]
test dword [eax + 0x18], 0x10000
je 0x10047c2f
mov ecx, ebx
call fcn.100521e8
test eax, eax
je 0x10047b61
mov eax, dword [ebx + 0x20]
and eax, 0x40000000
or eax, 0
jne 0x10047c3c
mov eax, dword [ebx + 0x20]
and eax, 0x20000000
or eax, 0
je 0x10047c29
xor eax, eax
inc eax
jmp 0x10047c2b
imul eax, edi, 0x18
mov edx, dword [eax + ebx + 4]
mov eax, dword [ebp + 0x10]
test byte [eax + 0x18], 1
jne 0x10047bb1
test byte [edx + 4], 0x10
je 0x10047bb1
mov ecx, dword [esp + 0x34]
push dword [ecx]
push str.misuse_of_aliased_aggregate__s
push dword [esp + 0x18]
call fcn.100261f3
add esp, 0xc
push 2
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [eax + 0x18], 0x4000
jne 0x10047bd0
test dword [edx + 4], 0x8000
je 0x10047bd0
mov ecx, dword [esp + 0x34]
push dword [ecx]
push str.misuse_of_aliased_window_function__s
jmp 0x10047b9b
mov ecx, edx
call fcn.1004959b
cmp eax, 1
je 0x10047bee
push str.row_value_misused
push dword [esp + 0x14]
call fcn.100261f3
pop ecx
pop ecx
jmp 0x10047ba7
mov eax, dword [esp + 0x40]
mov edx, ebx
mov ecx, dword [esp + 0x10]
push eax
push 0x10091798
push esi
push edi
call fcn.10047421
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp byte [eax + 0xc0], 2
jb 0x10047d41
push esi
xor edx, edx
mov ecx, eax
call fcn.1004ed1d
pop ecx
jmp 0x10047d3d
xor eax, eax
test eax, eax
jmp 0x10047c3a
mov eax, dword [ebx + 0x20]
and eax, 0x40000000
or eax, 0
je 0x10047c5d
push dword [ebp + 0xc]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.10025979
add esp, 0xc
mov byte [esi], 0x6e
and dword [esi + 0x28], 0
xor eax, eax
inc eax
jmp 0x10047baa
mov ecx, esi
call fcn.1004a938
test eax, eax
jne 0x10047c55
jmp 0x10047af1
mov eax, str.ambiguous_column_name
mov ecx, dword [esp + 0x28]
push dword [ebp + 0xc]
test ecx, ecx
je 0x10047c95
push dword [ebp + 8]
push ecx
push eax
push str._s:__s._s._s
push dword [esp + 0x24]
call fcn.100261f3
add esp, 0x18
jmp 0x10047cc4
cmp dword [ebp + 8], 0
je 0x10047cb2
push dword [ebp + 8]
push eax
push str._s:__s._s
push dword [esp + 0x20]
call fcn.100261f3
add esp, 0x14
jmp 0x10047cc4
push eax
push str._s:__s
push dword [esp + 0x1c]
call fcn.100261f3
add esp, 0x10
mov eax, dword [esp + 0x10]
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x44]
inc dword [eax + 0x14]
movzx eax, word [esi + 0x1c]
test ax, ax
js 0x10047cff
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x10047cff
movsx ecx, ax
cmp ecx, 0x40
jl 0x10047cef
push 0x3f
pop ecx
xor eax, eax
xor edx, edx
inc eax
call fcn.10086cf0
or dword [ebx + 0x38], eax
or dword [ebx + 0x3c], edx
mov edx, dword [esi + 0xc]
mov ebx, dword [esp + 0x2c]
test edx, edx
je 0x10047d11
mov ecx, ebx
call fcn.10049d39
and dword [esi + 0xc], 0
mov edx, dword [esi + 0x10]
test edx, edx
je 0x10047d23
mov ecx, ebx
call fcn.10049d39
and dword [esi + 0x10], 0
mov eax, dword [esp + 0x38]
or dword [esi + 4], 0x800000
mov byte [esi], al
cmp edi, 1
jne 0x10047ba7
mov eax, dword [esp + 0x10]
test dword [esi + 4], 0x400000
mov edi, dword [ebp + 0x10]
jne 0x10047d5f
push dword [edi + 4]
mov edx, esi
mov ecx, eax
push dword [esp + 0x34]
call fcn.10051724
pop ecx
pop ecx
mov eax, dword [esp + 0x44]
jmp 0x10047d68
mov eax, dword [eax + 0xc]
inc dword [eax + 0x10]
cmp eax, edi
jne 0x10047d65
jmp 0x10047c55