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

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
xor edx, edx
push ebp
push esi
mov esi, dword [esp + 0x64]
mov ecx, 0xa4
mov eax, dword [ebx]
mov ebp, edx
mov dword [esp + 0x2c], ecx
or ecx, 0xffffffff
push edi
mov edi, dword [esp + 0x64]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edx
test ecx, ecx
je 0x1012f293
test byte [edi + 0x18], 6
je 0x1012f216
mov dword [esp + 0x58], edx
jmp 0x1012f293
mov edi, edx
cmp dword [eax + 0x14], edx
jle 0x1012f25f
mov ebp, dword [eax + 0x10]
push ecx
push dword [ebp]
call fcn.101565fc
pop ecx
pop ecx
test eax, eax
je 0x1012f242
mov eax, dword [esp + 0x24]
inc edi
mov ecx, dword [esp + 0x58]
add ebp, 0x10
cmp edi, dword [eax + 0x14]
jl 0x1012f220
jmp 0x1012f25b
mov edx, dword [esp + 0x24]
mov eax, edi
add eax, eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + eax*8 + 0xc]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov eax, edx
mov ebp, dword [esp + 0x10]
cmp edi, dword [eax + 0x14]
jne 0x1012f28f
push ecx
push str.main
call fcn.101565fc
mov edi, dword [esp + 0x6c]
pop ecx
pop ecx
test eax, eax
jne 0x1012f293
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x58], eax
jmp 0x1012f293
mov edi, dword [esp + 0x64]
mov eax, dword [edi + 4]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x1012f4f6
xor ecx, ecx
lea ebp, [eax + 8]
mov edx, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], edx
cmp dword [eax], ecx
jle 0x1012f4ce
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
test eax, eax
je 0x1012f353
test dword [eax + 4], 0x800
je 0x1012f353
mov eax, dword [eax + 0x1c]
xor edi, edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x3c], eax
cmp dword [eax], edi
jle 0x1012f348
lea ebp, [eax + 4]
mov ebx, eax
push dword [esp + 0x58]
push dword [esp + 0x60]
push dword [esp + 0x68]
push ebp
call fcn.1014d04d
add esp, 0x10
test eax, eax
je 0x1012f324
mov eax, dword [esp + 0x20]
inc dword [esp + 0x14]
mov dword [esp + 0x10], eax
xor eax, eax
inc eax
mov dword [esp + 0x18], 2
mov word [esi + 0x20], di
mov dword [esp + 0x68], eax
jmp 0x1012f328
mov eax, dword [esp + 0x68]
inc edi
add ebp, 0x14
cmp edi, dword [ebx]
jl 0x1012f2ea
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
test eax, eax
jne 0x1012f4b2
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x5c], 0
je 0x1012f4b2
cmp dword [esp + 0x58], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
je 0x1012f36f
mov eax, dword [esp + 0x28]
cmp dword [ecx + 0x48], eax
jne 0x1012f4b2
cmp dword [esp + 0x5c], 0
je 0x1012f3b1
mov edi, dword [ebp + 0xc]
mov eax, edi
test edi, edi
jne 0x1012f381
mov eax, dword [ecx]
push dword [esp + 0x5c]
push eax
call fcn.101565fc
pop ecx
pop ecx
test eax, eax
jne 0x1012f4ae
cmp byte [ebx + 0xcc], 2
jb 0x1012f3b1
test edi, edi
je 0x1012f3b1
lea eax, [esi + 0x2c]
push eax
push 0
push ebx
call fcn.10152ab7
add esp, 0xc
inc dword [esp + 0x18]
mov eax, ebp
cmp dword [esp + 0x68], 0
push dword [esp + 0x60]
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.1015662f
pop ecx
mov ecx, dword [esp + 0x40]
mov dl, al
xor edi, edi
mov byte [esp + 0x68], dl
mov dword [esp + 0x3c], edi
mov eax, dword [ecx + 4]
movsx ecx, word [ecx + 0x2a]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x1012f4ae
cmp byte [eax + 0xf], dl
jne 0x1012f492
push dword [esp + 0x60]
push dword [eax]
call fcn.101565fc
pop ecx
pop ecx
test eax, eax
jne 0x1012f486
mov edx, dword [esp + 0x14]
cmp edx, 1
jne 0x1012f45c
test byte [ebp + 0x24], 4
jne 0x1012f486
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x1012f45c
mov ecx, dword [eax + 4]
xor ebp, ebp
mov dword [esp + 0x48], ecx
test ecx, ecx
jle 0x1012f458
mov edi, dword [eax]
push dword [esp + 0x60]
push dword [edi]
call fcn.101565fc
pop ecx
pop ecx
test eax, eax
je 0x1012f47e
inc ebp
add edi, 8
cmp ebp, dword [esp + 0x48]
jl 0x1012f435
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
inc edx
push 0xffffffffffffffff
movzx ecx, di
mov dword [esp + 0x18], edx
movsx eax, word [eax + 0x28]
cmp edi, eax
mov dword [esp + 0x14], ebp
pop eax
cmove ecx, eax
mov word [esi + 0x20], cx
jmp 0x1012f4ae
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dl, byte [esp + 0x68]
inc edi
add eax, 0x14
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], eax
cmp edi, ecx
jl 0x1012f3f6
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
inc edx
add ebp, 0x48
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
cmp edx, dword [eax]
jl 0x1012f2b9
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1012f4f6
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x2c], eax
test byte [ebp + 0x24], 8
je 0x1012f4ef
or dword [esi + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x58], 0
mov ecx, dword [esp + 0x18]
jne 0x1012f682
cmp dword [esp + 0x5c], 0
je 0x1012f682
test ecx, ecx
jne 0x1012f682
xor eax, eax
mov ebp, eax
cmp dword [ebx + 0x78], eax
je 0x1012f56d
mov al, byte [ebx + 0x94]
mov byte [esp + 0x68], al
cmp al, 0x7e
je 0x1012f553
push dword [esp + 0x5c]
push 0x10283b84
call fcn.101565fc
pop ecx
pop ecx
test eax, eax
jne 0x1012f54c
mov dword [esi + 0x1c], 1
jmp 0x1012f56a
cmp byte [esp + 0x68], 0x7d
je 0x1012f56d
push dword [esp + 0x5c]
push 0x10283b88
call fcn.101565fc
pop ecx
pop ecx
test eax, eax
jne 0x1012f56d
and dword [esi + 0x1c], ebp
mov ebp, dword [ebx + 0x78]
test dword [edi + 0x18], 0x200
je 0x1012f5a2
mov edi, dword [edi + 8]
test edi, edi
je 0x1012f59e
push dword [esp + 0x5c]
push str.excluded
call fcn.101565fc
pop ecx
pop ecx
test eax, eax
jne 0x1012f59e
mov eax, dword [edi + 0x14]
mov ebp, dword [eax + 0x18]
mov dword [esi + 0x1c], 2
mov edi, dword [esp + 0x64]
test ebp, ebp
je 0x1012f67a
push dword [esp + 0x60]
call fcn.1015662f
mov dl, al
mov dword [esp + 0x1c], 1
mov eax, dword [ebp + 0x48]
xor edi, edi
pop ecx
movsx ecx, word [ebp + 0x2a]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
mov byte [esp + 0x68], dl
mov dword [esp + 0x40], eax
test ecx, ecx
jle 0x1012f61f
cmp byte [eax + 0xf], dl
jne 0x1012f5fc
push dword [esp + 0x60]
push dword [eax]
call fcn.101565fc
pop ecx
pop ecx
test eax, eax
je 0x1012f60a
mov eax, dword [esp + 0x40]
movsx ecx, word [ebp + 0x2a]
mov dl, byte [esp + 0x68]
inc edi
add eax, 0x14
mov dword [esp + 0x40], eax
cmp edi, ecx
jl 0x1012f5da
jmp 0x1012f623
movsx eax, word [ebp + 0x28]
cmp edi, eax
jne 0x1012f61b
or edx, 0xffffffff
mov edi, edx
mov eax, edx
jmp 0x1012f64d
movsx ecx, word [ebp + 0x2a]
cmp edi, ecx
jl 0x1012f644
push dword [esp + 0x60]
call fcn.1014c141
pop ecx
movsx ecx, word [ebp + 0x2a]
test eax, eax
je 0x1012f644
test dword [ebp + 0x24], 0x200
push 0xffffffffffffffff
pop edx
cmove edi, edx
jmp 0x1012f647
or edx, 0xffffffff
mov eax, edi
cmp edi, ecx
jge 0x1012f676
inc dword [esp + 0x14]
cmp dword [esi + 0x1c], 2
jne 0x1012f70c
cmp byte [ebx + 0xcc], 2
movzx eax, ax
jb 0x1012f6df
mov word [esi + 0x20], ax
mov dword [esp + 0x30], 0xa4
mov dword [esi + 0x2c], ebp
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1012f752
cmp ecx, 1
jne 0x1012f752
test ebp, ebp
je 0x1012f752
test byte [edi + 0x18], 0x28
jne 0x1012f752
push dword [esp + 0x60]
call fcn.1014c141
pop ecx
test eax, eax
je 0x1012f74e
mov eax, dword [ebp + 0x10]
test dword [eax + 0x24], 0x200
jne 0x1012f74e
xor eax, eax
mov byte [esi + 1], 0x44
inc eax
or ecx, 0xffffffff
mov dword [esp + 0x14], eax
mov word [esi + 0x20], cx
jmp 0x1012f752
push eax
push ebp
call fcn.10156821
mov edi, dword [esp + 0x6c]
pop ecx
pop ecx
movsx ecx, ax
mov eax, dword [edi + 8]
mov dword [esp + 0x30], 0xad
add ecx, dword [eax + 0x18]
or dword [esi + 4], 0x400000
mov dword [esi + 0x1c], ecx
jmp 0x1012f67a
test edi, edi
jns 0x1012f716
mov byte [esi + 1], 0x44
jmp 0x1012f73d
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
cmp dword [esi + 0x1c], 0
jne 0x1012f731
cmp edi, 0x20
cmovge eax, edx
or dword [ebx + 0x8c], eax
jmp 0x1012f73d
cmp edi, 0x20
cmovge eax, edx
or dword [ebx + 0x90], eax
mov word [esi + 0x20], di
mov dword [esp + 0x30], 0x4d
jmp 0x1012f673
mov eax, dword [esp + 0x14]
test byte [edi + 0x18], 0x80
je 0x1012f7c7
test eax, eax
jne 0x1012f923
xor ecx, ecx
cmp dword [esp + 0x5c], ecx
jne 0x1012f7d1
mov eax, dword [edi + 8]
mov ebp, ecx
mov edx, dword [eax]
mov dword [esp + 0x4c], edx
test edx, edx
jle 0x1012f7d1
lea ecx, [eax + 0x10]
mov dword [esp + 0x68], ecx
test byte [ecx], 3
mov edi, dword [ecx - 8]
jne 0x1012f7b3
test edi, edi
jne 0x1012f794
mov eax, dword [esp + 0x60]
neg eax
sbb eax, eax
jmp 0x1012f7af
cmp dword [esp + 0x60], 0
je 0x1012f7b3
push dword [esp + 0x60]
push edi
call fcn.101565fc
mov edx, dword [esp + 0x54]
pop ecx
pop ecx
mov ecx, dword [esp + 0x68]
test eax, eax
je 0x1012f7ed
inc ebp
add ecx, 0x14
mov dword [esp + 0x68], ecx
cmp ebp, edx
jl 0x1012f77e
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1012f923
xor ecx, ecx
mov edi, dword [edi + 0xc]
inc dword [esp + 0x44]
mov dword [esp + 0x64], edi
test edi, edi
je 0x1012f898
mov ebp, dword [esp + 0x10]
jmp 0x1012f293
mov ecx, dword [esp + 0x64]
imul eax, ebp, 0x14
mov edx, dword [ecx + 8]
mov ecx, dword [eax + edx + 4]
mov eax, dword [esp + 0x64]
test byte [eax + 0x18], 1
jne 0x1012f825
test byte [ecx + 4], 0x10
je 0x1012f825
push edi
push str.misuse_of_aliased_aggregate__s
push ebx
call fcn.10143429
add esp, 0xc
push 2
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test dword [ecx + 4], 0x8000
je 0x1012f849
test dword [eax + 0x18], 0x4000
je 0x1012f841
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x64], eax
je 0x1012f849
push edi
push str.misuse_of_aliased_window_function__s
jmp 0x1012f811
push ecx
call fcn.101468a1
pop ecx
cmp eax, 1
je 0x1012f864
push str.row_value_misused
push ebx
call fcn.10143429
pop ecx
pop ecx
jmp 0x1012f81a
mov eax, dword [esp + 0x44]
push eax
push 0x1025e560
push esi
push ebp
push edx
push ebx
call fcn.10137302
add esp, 0x18
cmp byte [ebx + 0xcc], 2
jb 0x1012f9fb
push esi
push 0
push ebx
call fcn.10152ab7
add esp, 0xc
jmp 0x1012f9fb
cmp dword [esp + 0x5c], 0
jne 0x1012f928
test byte [esi + 4], 0x40
je 0x1012f916
mov ebp, dword [esp + 0x24]
cmp byte [ebp + 0xa5], 0
jne 0x1012f8f4
mov eax, dword [esp + 0x34]
test dword [eax + 0x18], 0x10000
je 0x1012f8e8
push ebp
call fcn.1016877d
pop ecx
test eax, eax
je 0x1012f8db
mov eax, dword [ebp + 0x20]
and eax, 0x40000000
or eax, 0
jne 0x1012f8f4
mov eax, dword [ebp + 0x20]
and eax, 0x20000000
or eax, 0
jmp 0x1012f8f2
mov eax, dword [ebp + 0x20]
and eax, 0x40000000
or eax, ecx
je 0x1012f916
push dword [esp + 0x60]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.1011e090
add esp, 0xc
mov byte [esi], 0x73
and dword [esi + 0x2c], 0
xor eax, eax
inc eax
jmp 0x1012f81d
push esi
call fcn.10145a34
pop ecx
test eax, eax
je 0x1012f928
jmp 0x1012f90e
cmp eax, 1
je 0x1012f995
mov edi, dword [esp + 0x14]
mov ecx, str.ambiguous_column_name
push dword [esp + 0x60]
test edi, edi
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x1012f95d
push dword [esp + 0x60]
push ecx
push eax
push str._s:__s._s._s
push ebx
call fcn.10143429
add esp, 0x18
jmp 0x1012f988
cmp dword [esp + 0x60], 0
je 0x1012f979
push dword [esp + 0x60]
push eax
push str._s:__s._s
push ebx
call fcn.10143429
add esp, 0x14
jmp 0x1012f988
push eax
push str._s:__s
push ebx
call fcn.10143429
add esp, 0x10
mov eax, dword [esp + 0x34]
mov byte [ebx + 0x11], 1
inc dword [eax + 0x14]
jmp 0x1012f999
mov edi, dword [esp + 0x14]
xor eax, eax
cmp word [esi + 0x20], ax
jl 0x1012f9b6
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1012f9b6
push esi
call fcn.101453bd
or dword [ebp + 0x38], eax
or dword [ebp + 0x3c], edx
pop ecx
cmp dword [esi + 0xc], 0
mov ebp, dword [esp + 0x24]
je 0x1012f9cb
push dword [esi + 0xc]
push ebp
call fcn.10145850
pop ecx
pop ecx
xor eax, eax
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], eax
je 0x1012f9e2
push dword [esi + 0x10]
push ebp
call fcn.10145850
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x30]
or dword [esi + 4], 0x800000
mov dword [esi + 0x10], eax
mov byte [esi], cl
cmp edi, 1
jne 0x1012f81a
test dword [esi + 4], 0x400000
jne 0x1012fa19
mov eax, dword [esp + 0x64]
push dword [eax + 4]
push dword [esp + 0x2c]
push esi
push ebx
call fcn.1013c168
add esp, 0x10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
jmp 0x1012fa26
mov eax, dword [eax + 0xc]
inc dword [eax + 0x10]
cmp eax, ecx
jne 0x1012fa23
jmp 0x1012f90e