Function at 0x1001ae35
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 4], 0
xor eax, eax
mov edx, dword [ebp + 0x18]
mov ecx, 0xa2
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x20], ecx
or ecx, 0xffffffff
push edi
xor edi, edi
mov dword [ebp - 0xc], eax
and dword [ebp - 0x18], edi
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x2c], edx
test ecx, ecx
je 0x1001aec7
test byte [edx + 0x18], 6
je 0x1001ae83
and dword [ebp + 0xc], edi
jmp 0x1001aec7
xor edi, edi
cmp dword [eax + 0x14], edi
jle 0x1001aec7
mov eax, dword [eax + 0x10]
mov dword [ebp + 0x1c], eax
push ecx
push dword [eax]
call fcn.1003dddc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x1001aeb5
mov eax, dword [ebp + 0x1c]
inc edi
add eax, 0x10
cmp edi, dword [ecx + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
jl 0x1001ae90
jmp 0x1001aec1
mov eax, dword [ecx + 0x10]
add edi, edi
mov eax, dword [eax + edi*8 + 0xc]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1001b0b7
xor edi, edi
lea ecx, [eax + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x1c], ecx
cmp dword [eax], edi
jle 0x1001b091
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x1001af6e
test dword [eax + 8], 0x800
je 0x1001af6e
mov eax, dword [eax]
xor edi, edi
and dword [ebp - 0x24], 0
mov dword [ebp - 0x34], eax
cmp dword [eax], edi
jle 0x1001af61
lea ebx, [eax + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebx]
call fcn.10035686
add esp, 0x10
test eax, eax
je 0x1001af42
inc dword [ebp - 4]
xor ecx, ecx
push 2
pop eax
mov dword [ebp - 0xc], eax
inc ecx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov word [esi + 0x20], di
mov dword [ebp - 0x24], ecx
jmp 0x1001af45
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
inc edi
add ebx, 0x18
cmp edi, dword [eax]
jl 0x1001af10
mov ebx, dword [ebp + 8]
test ecx, ecx
mov ecx, dword [ebp + 0x1c]
jne 0x1001b079
mov edx, dword [ebp - 0x1c]
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp - 0x10]
je 0x1001b07c
cmp dword [ebp + 0xc], 0
je 0x1001af80
mov eax, dword [ebp - 0x18]
cmp dword [edx + 0x48], eax
jne 0x1001b07c
cmp dword [ebp + 0x10], 0
je 0x1001afc0
mov edi, dword [ecx + 0xc]
mov eax, edi
test edi, edi
jne 0x1001af91
mov eax, dword [edx]
push dword [ebp + 0x10]
push eax
call fcn.1003dddc
pop ecx
pop ecx
test eax, eax
jne 0x1001b076
cmp byte [ebx + 0xc8], 2
jb 0x1001afc0
test edi, edi
je 0x1001afc0
lea eax, [esi + 0x2c]
push eax
push 0
push ebx
call fcn.1003a818
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov eax, ecx
inc ecx
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x1001afd3
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
xor edi, edi
mov dword [ebp - 0x24], edi
mov eax, dword [ecx + 4]
movsx ecx, word [ecx + 0x2a]
mov dword [ebp - 0x34], eax
test ecx, ecx
jle 0x1001b076
push dword [ebp + 0x14]
push dword [eax]
call fcn.1003dddc
pop ecx
pop ecx
test eax, eax
jne 0x1001b10e
mov edx, dword [ebp - 4]
cmp edx, 1
jne 0x1001b056
mov eax, dword [ebp + 0x1c]
test byte [eax + 0x24], 4
jne 0x1001b10e
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1001b056
mov ecx, dword [eax + 4]
and dword [ebp - 0x30], 0
mov dword [ebp - 0x38], ecx
test ecx, ecx
jle 0x1001b056
mov edi, dword [eax]
push dword [ebp + 0x14]
push dword [edi]
call fcn.1003dddc
pop ecx
pop ecx
test eax, eax
je 0x1001b10b
mov eax, dword [ebp - 0x30]
add edi, 8
inc eax
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x38]
jl 0x1001b02d
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x1c]
inc edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
movzx ecx, di
mov dword [ebp - 4], edx
movsx eax, word [eax + 0x28]
cmp edi, eax
pop eax
cmove ecx, eax
mov word [esi + 0x20], cx
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x3c]
inc edi
add ecx, 0x48
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x1c], ecx
cmp edi, dword [eax]
jl 0x1001aee8
mov edi, dword [ebp - 8]
test edi, edi
je 0x1001b0b7
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x2c], eax
test byte [edi + 0x24], 8
je 0x1001b0b1
or dword [esi + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0xc]
jne 0x1001b2e4
cmp dword [ebp + 0x10], 0
je 0x1001b2e4
test eax, eax
jne 0x1001b2e4
xor edi, edi
mov dword [ebp + 0x1c], edi
cmp dword [ebx + 0x78], edi
je 0x1001b153
movzx eax, byte [ebx + 0x90]
mov dword [ebp - 0x3c], eax
cmp eax, 0x79
je 0x1001b132
push dword [ebp + 0x10]
push 0x10072b2c
call fcn.1003dddc
pop ecx
pop ecx
test eax, eax
jne 0x1001b12f
mov dword [esi + 0x1c], 1
jmp 0x1001b14d
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
inc edi
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], eax
movsx ecx, word [edx + 0x2a]
cmp edi, ecx
jl 0x1001afed
jmp 0x1001b076
mov eax, dword [ebp - 0x3c]
cmp eax, 0x78
je 0x1001b153
push dword [ebp + 0x10]
push 0x10072b30
call fcn.1003dddc
pop ecx
pop ecx
test eax, eax
jne 0x1001b153
and dword [esi + 0x1c], edi
mov edi, dword [ebx + 0x78]
mov dword [ebp + 0x1c], edi
mov eax, dword [ebp + 0x18]
test dword [eax + 0x18], 0x200
je 0x1001b18f
mov eax, dword [eax + 8]
test eax, eax
je 0x1001b18f
push dword [ebp + 0x10]
push str.excluded
call fcn.1003dddc
pop ecx
pop ecx
test eax, eax
jne 0x1001b18f
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x14]
mov edi, dword [eax + 0x18]
mov dword [ebp + 0x1c], edi
mov dword [esi + 0x1c], 2
test edi, edi
je 0x1001b29d
mov eax, dword [edi + 0x48]
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], 1
movsx edx, word [eax + 0x2a]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
test edx, edx
jle 0x1001b1ec
push dword [ebp + 0x14]
push dword [ecx]
call fcn.1003dddc
mov edx, dword [ebp - 0x30]
pop ecx
pop ecx
test eax, eax
je 0x1001b1dd
mov ecx, dword [ebp - 0x34]
inc edi
add ecx, 0x10
mov dword [ebp - 0x34], ecx
cmp edi, edx
jl 0x1001b1ba
jmp 0x1001b1ec
mov eax, dword [ebp + 0x1c]
push 0xffffffffffffffff
movsx eax, word [eax + 0x28]
cmp edi, eax
pop eax
cmove edi, eax
cmp edi, edx
jl 0x1001b20c
push dword [ebp + 0x14]
call fcn.100348d5
mov edx, dword [ebp + 0x1c]
pop ecx
test eax, eax
je 0x1001b20f
test byte [edx + 0x24], 0x40
push 0xffffffffffffffff
pop eax
cmove edi, eax
jmp 0x1001b20f
mov edx, dword [ebp + 0x1c]
movsx eax, word [edx + 0x2a]
cmp edi, eax
jge 0x1001b29d
inc dword [ebp - 4]
cmp dword [esi + 0x1c], 2
jne 0x1001b25b
cmp byte [ebx + 0xc8], 2
mov ecx, dword [ebp + 0x18]
jb 0x1001b240
mov word [esi + 0x20], di
mov dword [esi + 0x2c], edx
mov dword [ebp - 0x20], 0xa2
jmp 0x1001b2a0
mov eax, dword [ecx + 8]
mov dword [ebp - 0x20], 0xa8
mov eax, dword [eax + 0x18]
add eax, edi
or dword [esi + 4], 0x400000
mov dword [esi + 0x1c], eax
jmp 0x1001b2a0
test edi, edi
jns 0x1001b265
mov byte [esi + 1], 0x44
jmp 0x1001b28f
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
cmp dword [esi + 0x1c], 0
push 0xffffffffffffffff
pop ecx
jne 0x1001b283
cmp edi, 0x20
cmovge eax, ecx
or dword [ebx + 0x88], eax
jmp 0x1001b28f
cmp edi, 0x20
cmovge eax, ecx
or dword [ebx + 0x8c], eax
mov dword [esi + 0x2c], edx
mov word [esi + 0x20], di
mov dword [ebp - 0x20], 0x4d
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], 0
jne 0x1001b2e9
cmp eax, 1
jne 0x1001b2e9
test edi, edi
je 0x1001b2e9
test byte [ecx + 0x18], 0x20
jne 0x1001b2e9
push dword [ebp + 0x14]
call fcn.100348d5
pop ecx
test eax, eax
je 0x1001b2e9
mov eax, dword [edi + 0x10]
test byte [eax + 0x24], 0x40
jne 0x1001b2e9
xor edi, edi
mov byte [esi + 1], 0x44
inc edi
or eax, 0xffffffff
mov dword [ebp - 4], edi
mov word [esi + 0x20], ax
jmp 0x1001b2ec
mov ecx, dword [ebp + 0x18]
jmp 0x1001b2a6
mov edi, dword [ebp - 4]
mov edx, dword [ebp + 0x18]
test byte [edx + 0x18], 0x80
je 0x1001b344
test edi, edi
jne 0x1001b348
cmp dword [ebp + 0x10], edi
jne 0x1001b389
mov eax, dword [edx + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
jle 0x1001b386
add eax, 8
mov dword [ebp + 0x1c], eax
cmp dword [eax], 0
je 0x1001b333
push dword [ebp + 0x14]
push dword [eax]
call fcn.1003dddc
pop ecx
pop ecx
test eax, eax
je 0x1001b40b
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x3c]
inc edi
add eax, 0x18
mov dword [ebp + 0x1c], eax
cmp edi, ecx
jl 0x1001b314
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp - 4]
test edi, edi
je 0x1001b389
cmp edi, 1
je 0x1001b511
push dword [ebp + 0x14]
test edi, edi
mov ecx, str.ambiguous_column_name
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1001b4de
push dword [ebp + 0x10]
push ecx
push eax
push str._s:__s._s._s
push ebx
call fcn.1002ce58
add esp, 0x18
jmp 0x1001b507
mov edi, dword [ebp - 4]
mov edx, dword [edx + 0xc]
inc dword [ebp - 0x28]
mov dword [ebp + 0x18], edx
test edx, edx
jne 0x1001aec4
cmp dword [ebp + 0x10], edx
jne 0x1001b351
test byte [esi + 4], 0x40
je 0x1001b3f7
mov ecx, dword [ebp - 0x14]
cmp byte [ecx + 0xa5], dl
jne 0x1001b4bd
mov eax, dword [ebp - 0x2c]
test dword [eax + 0x18], 0x10000
je 0x1001b4b0
push ecx
call fcn.1004d7c0
pop ecx
test eax, eax
je 0x1001b3e3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x20]
and eax, 0x40000000
or eax, 0
jne 0x1001b4bd
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x20]
and eax, 0x20000000
or eax, 0
jne 0x1001b4bd
push esi
call fcn.1002efb3
pop ecx
test eax, eax
je 0x1001b351
jmp 0x1001b4d6
mov ecx, dword [ebp + 0x18]
imul eax, edi, 0x18
mov edx, dword [ecx + 8]
mov ecx, dword [eax + edx + 4]
mov eax, dword [ebp + 0x18]
test byte [eax + 0x18], 1
jne 0x1001b444
test byte [ecx + 4], 0x10
je 0x1001b444
mov ecx, dword [ebp + 0x1c]
push dword [ecx]
push str.misuse_of_aliased_aggregate__s
push ebx
call fcn.1002ce58
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 0x1001b462
test dword [ecx + 4], 0x8000
je 0x1001b462
mov ecx, dword [ebp + 0x1c]
push dword [ecx]
push str.misuse_of_aliased_window_function__s
jmp 0x1001b431
push ecx
call fcn.1002fcc3
pop ecx
cmp eax, 1
je 0x1001b47d
push str.row_value_misused
push ebx
call fcn.1002ce58
pop ecx
pop ecx
jmp 0x1001b43a
mov eax, dword [ebp - 0x28]
push eax
push 0x10070ad4
push esi
push edi
push edx
push ebx
call fcn.10022311
add esp, 0x18
cmp byte [ebx + 0xc8], 2
jb 0x1001b58e
push esi
push 0
push ebx
call fcn.1003a818
add esp, 0xc
jmp 0x1001b58e
mov eax, dword [ecx + 0x20]
and eax, 0x40000000
jmp 0x1001b3ee
push dword [ebp + 0x14]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.1000bb93
add esp, 0xc
mov byte [esi], 0x6e
and dword [esi + 0x2c], 0
xor eax, eax
inc eax
jmp 0x1001b43d
cmp dword [ebp + 0x10], 0
je 0x1001b4f8
push dword [ebp + 0x10]
push eax
push str._s:__s._s
push ebx
call fcn.1002ce58
add esp, 0x14
jmp 0x1001b507
push eax
push str._s:__s
push ebx
call fcn.1002ce58
add esp, 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebx + 0x11], 1
inc dword [eax + 0x14]
movzx eax, word [esi + 0x20]
test ax, ax
js 0x1001b54b
mov edi, dword [ebp - 8]
test edi, edi
je 0x1001b548
movsx edx, ax
cmp edx, 0x40
push 0x3f
pop eax
cmovge edx, eax
xor eax, eax
xor ecx, ecx
bts eax, edx
cmp edx, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edx, 0x40
cmovae ecx, eax
or dword [edi + 0x38], eax
or dword [edi + 0x3c], ecx
mov edi, dword [ebp - 4]
cmp dword [esi + 0xc], 0
je 0x1001b55e
push dword [esi + 0xc]
push dword [ebp - 0x14]
call fcn.1002ee0c
pop ecx
pop ecx
and dword [esi + 0xc], 0
cmp dword [esi + 0x10], 0
je 0x1001b575
push dword [esi + 0x10]
push dword [ebp - 0x14]
call fcn.1002ee0c
pop ecx
pop ecx
and dword [esi + 0x10], 0
or dword [esi + 4], 0x800000
mov ecx, dword [ebp - 0x20]
mov byte [esi], cl
cmp edi, 1
jne 0x1001b43a
test dword [esi + 4], 0x400000
jne 0x1001b5aa
mov ecx, dword [ebp + 0x18]
push dword [ecx + 4]
push dword [ebp - 0x18]
push esi
push ebx
call fcn.1002668d
add esp, 0x10
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x18]
jmp 0x1001b5b5
mov eax, dword [eax + 0xc]
inc dword [eax + 0x10]
cmp eax, ecx
jne 0x1001b5b2
jmp 0x1001b4d6