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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
xor eax, eax
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ecx]
or dword [ebx + 0x1c], 0xffffffff
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0xa4
cmp dword [ebp + 0xc], eax
je 0x46c336
test byte [esi + 0x18], 6
je 0x46c2cf
and dword [ebp + 0xc], eax
jmp 0x46c336
and dword [ebp - 0x10], eax
cmp dword [edi + 0x14], eax
jle 0x46c30f
mov eax, dword [edi + 0x10]
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx]
call fcn.00431c85
test eax, eax
je 0x46c2ff
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp + 0x1c], 0x10
cmp eax, dword [edi + 0x14]
jl 0x46c2dd
jmp 0x46c30f
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0x10]
shl ecx, 4
mov eax, dword [ecx + eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 0x14]
jne 0x46c336
mov eax, dword [ebp + 0xc]
mov ecx, str.main
call fcn.00431c85
test eax, eax
jne 0x46c336
mov edi, dword [edi + 0x10]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x46c4f4
and dword [ebp - 0x10], 0
cmp dword [eax], 0
lea ecx, [eax + 8]
mov dword [ebp - 0xc], ecx
jle 0x46c4cc
jmp 0x46c35c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x30], esi
test eax, eax
je 0x46c3d7
test dword [eax + 4], 0x800
je 0x46c3d7
mov esi, dword [eax + 0x1c]
xor edi, edi
cmp dword [esi], edi
mov dword [ebp - 8], edi
jle 0x46c3ca
lea eax, [esi + 4]
mov dword [ebp + 0x1c], eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.00437d64
add esp, 0xc
test eax, eax
je 0x46c3b7
mov eax, dword [ebp - 0xc]
inc dword [ebp - 4]
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x18], eax
mov word [ebx + 0x20], di
mov dword [ebp - 8], 1
add dword [ebp + 0x1c], 0x14
inc edi
cmp edi, dword [esi]
jl 0x46c384
cmp dword [ebp - 8], 0
jne 0x46c4b7
cmp dword [ebp + 0x10], 0
je 0x46c4b7
mov esi, dword [ebp - 0x30]
cmp dword [ebp + 0xc], 0
je 0x46c3e9
mov eax, dword [ebp - 0x1c]
cmp dword [esi + 0x48], eax
jne 0x46c4b7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x46c428
mov ecx, dword [ebp - 0xc]
mov edi, dword [ecx + 0xc]
mov ecx, edi
test edi, edi
jne 0x46c3fe
mov ecx, dword [esi]
call fcn.00431c85
test eax, eax
jne 0x46c4b7
mov eax, dword [ebp + 8]
cmp byte [eax + 0xcc], 2
jb 0x46c428
test edi, edi
je 0x46c428
lea ecx, [ebx + 0x2c]
push ecx
push 0
call fcn.0043861f
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
test eax, eax
jne 0x46c438
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 0x14]
call fcn.00431d17
and dword [ebp - 8], 0
mov edi, dword [esi + 4]
mov byte [ebp + 0x1f], al
movsx eax, word [esi + 0x2a]
test eax, eax
jle 0x46c4b7
mov al, byte [ebp + 0x1f]
cmp byte [edi + 0xf], al
jne 0x46c487
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi]
call fcn.00431c85
test eax, eax
jne 0x46c487
cmp dword [ebp - 4], 1
jne 0x46c498
mov eax, dword [ebp - 0xc]
test byte [eax + 0x24], 4
jne 0x46c487
push dword [ebp + 0x14]
mov eax, dword [eax + 0x34]
call fcn.00437d30
pop ecx
test eax, eax
je 0x46c498
movsx eax, word [esi + 0x2a]
inc dword [ebp - 8]
add edi, 0x14
cmp dword [ebp - 8], eax
jl 0x46c452
jmp 0x46c4b7
mov eax, dword [ebp - 0xc]
inc dword [ebp - 4]
mov dword [ebp - 0x18], eax
movsx eax, word [esi + 0x28]
cmp dword [ebp - 8], eax
jne 0x46c4af
or eax, 0xffffffff
jmp 0x46c4b3
movsx eax, word [ebp - 8]
mov word [ebx + 0x20], ax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0xc], 0x48
cmp ecx, dword [eax]
jl 0x46c359
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46c4f4
mov ecx, dword [eax + 0x2c]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x2c], ecx
test byte [eax + 0x24], 8
je 0x46c4ec
or dword [ebx + 4], 0x100000
mov eax, ecx
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0xc], 0
jne 0x46c6be
cmp dword [ebp + 0x10], 0
je 0x46c6be
cmp dword [ebp - 0x14], 0
jne 0x46c6be
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x78], edi
je 0x46c565
movzx eax, byte [esi + 0x94]
cmp eax, 0x7e
je 0x46c542
mov eax, dword [ebp + 0x10]
mov ecx, 0x655610
call fcn.00431c85
test eax, eax
jne 0x46c542
mov dword [ebx + 0x1c], 1
jmp 0x46c562
movzx eax, byte [esi + 0x94]
cmp eax, 0x7d
je 0x46c565
mov eax, dword [ebp + 0x10]
mov ecx, 0x655614
call fcn.00431c85
test eax, eax
jne 0x46c565
and dword [ebx + 0x1c], eax
mov edi, dword [esi + 0x78]
mov eax, dword [ebp + 0x18]
test dword [eax + 0x18], 0x200
je 0x46c596
mov esi, dword [eax + 8]
test esi, esi
je 0x46c596
mov eax, dword [ebp + 0x10]
mov ecx, str.excluded
call fcn.00431c85
test eax, eax
jne 0x46c596
mov eax, dword [esi + 0x14]
mov edi, dword [eax + 0x18]
mov dword [ebx + 0x1c], 2
test edi, edi
je 0x46c6be
mov edx, dword [ebp + 0x14]
call fcn.00431d17
and dword [ebp - 0x10], 0
mov esi, dword [edi + 4]
mov byte [ebp + 0x1f], al
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x1c], eax
movsx eax, word [edi + 0x2a]
mov dword [ebp - 0x14], 1
test eax, eax
jle 0x46c5f9
mov al, byte [esi + 0xf]
cmp al, byte [ebp + 0x1f]
jne 0x46c5db
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi]
call fcn.00431c85
test eax, eax
je 0x46c5ec
movsx eax, word [edi + 0x2a]
inc dword [ebp - 0x10]
add esi, 0x14
cmp dword [ebp - 0x10], eax
jl 0x46c5c5
jmp 0x46c5f9
movsx eax, word [edi + 0x28]
cmp dword [ebp - 0x10], eax
jne 0x46c5f9
or dword [ebp - 0x10], 0xffffffff
movsx eax, word [edi + 0x2a]
cmp dword [ebp - 0x10], eax
jl 0x46c61b
mov esi, dword [ebp + 0x14]
call fcn.004383d6
test eax, eax
je 0x46c61b
test dword [edi + 0x24], 0x200
jne 0x46c61b
or dword [ebp - 0x10], 0xffffffff
movsx eax, word [edi + 0x2a]
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
jge 0x46c6be
mov eax, dword [ebx + 0x1c]
inc dword [ebp - 4]
cmp eax, 2
jne 0x46c670
mov eax, dword [ebp + 8]
cmp byte [eax + 0xcc], 2
jb 0x46c64a
mov dword [ebp - 0x20], 0xa4
jmp 0x46c6b7
mov eax, ecx
mov ecx, edi
call fcn.00438c25
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 8]
cwde
add eax, dword [ecx + 0x18]
or dword [ebx + 4], 0x400000
mov dword [ebx + 0x1c], eax
mov dword [ebp - 0x20], 0xad
jmp 0x46c6be
test ecx, ecx
jge 0x46c67a
mov byte [ebx + 1], 0x44
jmp 0x46c6b0
test eax, eax
jne 0x46c698
cmp ecx, 0x20
jl 0x46c688
or eax, 0xffffffff
jmp 0x46c68d
xor eax, eax
inc eax
shl eax, cl
mov edx, dword [ebp + 8]
or dword [edx + 0x8c], eax
jmp 0x46c6b0
cmp ecx, 0x20
jl 0x46c6a2
or eax, 0xffffffff
jmp 0x46c6a7
xor eax, eax
inc eax
shl eax, cl
mov edx, dword [ebp + 8]
or dword [edx + 0x90], eax
mov dword [ebp - 0x20], 0x4d
mov word [ebx + 0x20], cx
mov dword [ebx + 0x2c], edi
cmp dword [ebp - 4], 0
jne 0x46c706
cmp dword [ebp - 0x14], 1
jne 0x46c706
cmp dword [ebp - 0x18], 0
je 0x46c706
mov eax, dword [ebp + 0x18]
test byte [eax + 0x18], 0x28
jne 0x46c706
mov esi, dword [ebp + 0x14]
call fcn.004383d6
test eax, eax
je 0x46c706
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
test dword [eax + 0x24], 0x200
jne 0x46c706
or eax, 0xffffffff
mov dword [ebp - 4], 1
mov word [ebx + 0x20], ax
mov byte [ebx + 1], 0x44
mov esi, dword [ebp + 0x18]
test byte [esi + 0x18], 0x80
je 0x46c759
xor edx, edx
cmp dword [ebp - 4], edx
jne 0x46c86f
cmp dword [ebp + 0x10], edx
jne 0x46c763
mov eax, dword [esi + 8]
mov ecx, dword [eax]
cmp ecx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], ecx
jle 0x46c763
lea edi, [eax + 0x10]
test byte [edi], 3
mov eax, dword [edi - 8]
mov dword [ebp + 0x1c], eax
jne 0x46c74b
push dword [ebp + 0x14]
push eax
call fcn.0043c7f6
pop ecx
pop ecx
test eax, eax
je 0x46c779
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add edi, 0x14
cmp eax, dword [ebp - 0x34]
jl 0x46c731
cmp dword [ebp - 4], 0
jne 0x46c86f
mov esi, dword [esi + 0xc]
inc dword [ebp - 0x28]
mov dword [ebp + 0x18], esi
test esi, esi
je 0x46c825
jmp 0x46c336
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 8]
imul ecx, ecx, 0x14
mov eax, dword [ecx + eax + 4]
mov ecx, dword [esi + 0x18]
test cl, 1
jne 0x46c7ae
test byte [eax + 4], 0x10
je 0x46c7ae
push dword [ebp + 0x1c]
push str.misuse_of_aliased_aggregate__s
mov edi, dword [ebp + 8]
call fcn.0044b643
pop ecx
pop ecx
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
test dword [eax + 4], 0x8000
je 0x46c7ce
test ecx, 0x4000
je 0x46c7c4
cmp esi, dword [ebp - 0x24]
je 0x46c7ce
push dword [ebp + 0x1c]
push str.misuse_of_aliased_window_function__s
jmp 0x46c79c
mov ecx, eax
call fcn.00437ef0
cmp eax, 1
je 0x46c7e9
mov edi, dword [ebp + 8]
push str.row_value_misused
call fcn.0044b643
jmp 0x46c7a5
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
mov ecx, dword [ecx + 8]
push 0x644e32
push dword [ebp + 8]
mov edi, ebx
call fcn.0046c1d4
mov eax, dword [ebp + 8]
cmp byte [eax + 0xcc], 2
pop ecx
pop ecx
jb 0x46c92e
push ebx
push 0
call fcn.0043861f
pop ecx
pop ecx
jmp 0x46c92e
cmp dword [ebp + 0x10], 0
jne 0x46c87b
test byte [ebx + 4], 0x40
je 0x46c862
push dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
call fcn.0043fb76
pop ecx
test eax, eax
je 0x46c862
push dword [ebp + 0x14]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.0044b57a
add esp, 0xc
and dword [ebx + 0x2c], 0
mov byte [ebx], 0x73
xor eax, eax
inc eax
jmp 0x46c7a9
mov edi, ebx
call fcn.00438113
test eax, eax
je 0x46c87b
jmp 0x46c85a
cmp dword [ebp - 4], 1
je 0x46c8dd
cmp dword [ebp - 4], 0
jne 0x46c882
mov eax, str.no_such_column
jmp 0x46c887
mov eax, str.ambiguous_column_name
cmp dword [ebp + 0xc], 0
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
je 0x46c8a9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push str._s:__s._s._s
call fcn.0044b643
add esp, 0x14
jmp 0x46c8d0
cmp dword [ebp + 0x10], 0
je 0x46c8c2
push dword [ebp + 0x10]
push eax
push str._s:__s._s
call fcn.0044b643
add esp, 0x10
jmp 0x46c8d0
push eax
push str._s:__s
call fcn.0044b643
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x24]
inc dword [eax + 0x14]
xor edi, edi
cmp word [ebx + 0x20], di
jl 0x46c8f9
mov esi, dword [ebp - 0x18]
cmp esi, edi
je 0x46c8f9
mov eax, ebx
call fcn.00437df9
or dword [esi + 0x38], eax
or dword [esi + 0x3c], edx
push dword [ebx + 0xc]
push dword [ebp - 0x2c]
call fcn.004439cd
push dword [ebx + 0x10]
mov dword [ebx + 0xc], edi
push dword [ebp - 0x2c]
call fcn.004439cd
mov al, byte [ebp - 0x20]
add esp, 0x10
or dword [ebx + 4], 0x800000
cmp dword [ebp - 4], 1
mov dword [ebx + 0x10], edi
mov byte [ebx], al
jne 0x46c7a6
test dword [ebx + 4], 0x400000
jne 0x46c94b
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 4]
mov edx, dword [ebp - 0x1c]
push ebx
push dword [ebp + 8]
call fcn.0044e696
pop ecx
pop ecx
mov eax, dword [ebp - 0x24]
jmp 0x46c953
mov eax, dword [eax + 0xc]
inc dword [eax + 0x10]
cmp eax, dword [ebp + 0x18]
jne 0x46c950
jmp 0x46c85a