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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
and dword [esp + 4], 0
xor eax, eax
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x10]
mov ecx, 0xa2
push esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x30], ecx
or ecx, 0xffffffff
push edi
xor edi, edi
mov dword [esp + 0x18], eax
and dword [esp + 0x2c], edi
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], edx
test ecx, ecx
je 0x4768f5
test byte [edx + 0x18], 6
je 0x4768ab
and dword [esp + 0x24], edi
jmp 0x4768f5
xor edi, edi
cmp dword [eax + 0x14], edi
jle 0x4768f5
mov eax, dword [eax + 0x10]
mov dword [esp + 0x38], eax
mov edx, ecx
mov ecx, dword [eax]
call fcn.004543ae
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x4768e1
mov eax, dword [esp + 0x38]
inc edi
add eax, 0x10
cmp edi, dword [ecx + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
jl 0x4768b9
jmp 0x4768ee
mov eax, dword [ecx + 0x10]
add edi, edi
mov eax, dword [eax + edi*8 + 0xc]
mov dword [esp + 0x2c], eax
mov edx, dword [ebp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [edx + 4]
mov dword [esp + 0x54], eax
test eax, eax
je 0x476b12
xor edi, edi
lea ecx, [eax + 8]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ecx
cmp dword [eax], edi
jle 0x476aea
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x30], edx
test eax, eax
je 0x4769b1
test dword [eax + 8], 0x800
je 0x4769b1
mov eax, dword [eax]
xor edi, edi
and dword [esp + 0x38], 0
mov dword [esp + 0x48], eax
cmp dword [eax], edi
jle 0x4769a3
lea ebx, [eax + 0xc]
push dword [esp + 0x24]
mov edx, dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebx]
call fcn.004767b3
pop ecx
pop ecx
test eax, eax
je 0x47697f
inc dword [esp + 0x10]
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 + 0x20], di
mov dword [esp + 0x38], ecx
jmp 0x476983
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
inc edi
add ebx, 0x18
cmp edi, dword [eax]
jl 0x476948
mov ebx, dword [esp + 0x4c]
test ecx, ecx
mov ecx, dword [esp + 0x1c]
jne 0x476ace
mov edx, dword [esp + 0x30]
cmp dword [ebp + 8], 0
mov edi, dword [esp + 0x20]
je 0x476ad2
cmp dword [esp + 0x24], 0
je 0x4769c5
mov eax, dword [esp + 0x2c]
cmp dword [edx + 0x48], eax
jne 0x476ad2
cmp dword [ebp + 8], 0
je 0x476a04
lea eax, [ecx + 0xc]
mov ecx, edx
mov edi, dword [eax]
test edi, edi
mov edx, dword [ebp + 8]
cmovne ecx, eax
mov ecx, dword [ecx]
call fcn.004543ae
test eax, eax
jne 0x476aca
cmp byte [ebx + 0xc8], 2
jb 0x476a04
test edi, edi
je 0x476a04
lea eax, [esi + 0x2c]
xor edx, edx
push eax
mov ecx, ebx
call fcn.0047df9b
pop ecx
mov ecx, dword [esp + 0x18]
mov eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x476a1b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x38], edi
mov eax, dword [ecx + 4]
movsx ecx, word [ecx + 0x2a]
mov dword [esp + 0x48], eax
test ecx, ecx
jle 0x476aca
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.004543ae
test eax, eax
jne 0x476b6c
mov edx, dword [esp + 0x10]
cmp edx, 1
jne 0x476aa6
mov eax, dword [esp + 0x1c]
test byte [eax + 0x24], 4
jne 0x476b6c
mov eax, dword [eax + 0x34]
test eax, eax
je 0x476aa6
mov ecx, dword [eax + 4]
and dword [esp + 0x44], 0
mov dword [esp + 0x50], ecx
test ecx, ecx
jle 0x476aa6
mov edi, dword [eax]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
call fcn.004543ae
test eax, eax
je 0x476b68
mov eax, dword [esp + 0x44]
add edi, 8
inc eax
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x50]
jl 0x476a7a
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
movzx ecx, di
mov dword [esp + 0x14], edx
movsx eax, word [eax + 0x28]
cmp edi, eax
pop eax
cmove ecx, eax
mov word [esi + 0x20], cx
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x54]
inc edi
add ecx, 0x48
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ecx
cmp edi, dword [eax]
jl 0x476919
mov edi, dword [esp + 0x14]
test edi, edi
je 0x476b12
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 0x476b0b
or dword [esi + 4], 0x100000
mov eax, dword [eax + 0x48]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x18]
jne 0x476d54
cmp dword [ebp + 8], 0
je 0x476d54
test eax, eax
jne 0x476d54
xor edi, edi
mov dword [esp + 0x20], edi
cmp dword [ebx + 0x78], edi
je 0x476bb5
movzx eax, byte [ebx + 0x90]
mov dword [esp + 0x54], eax
cmp eax, 0x7c
je 0x476b95
mov edx, dword [ebp + 8]
mov ecx, 0x5fcfec
call fcn.004543ae
test eax, eax
jne 0x476b91
mov dword [esi + 0x1c], 1
jmp 0x476bae
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
inc edi
mov eax, dword [esp + 0x48]
add eax, 0x10
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], eax
movsx ecx, word [edx + 0x2a]
cmp edi, ecx
jl 0x476a38
jmp 0x476aca
mov eax, dword [esp + 0x54]
cmp eax, 0x7b
je 0x476bb5
mov edx, dword [ebp + 8]
mov ecx, 0x5fcff0
call fcn.004543ae
test eax, eax
jne 0x476bb5
and dword [esi + 0x1c], edi
mov edi, dword [ebx + 0x78]
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x10]
test dword [eax + 0x18], 0x200
je 0x476bf0
mov eax, dword [eax + 8]
test eax, eax
je 0x476bf0
mov edx, dword [ebp + 8]
mov ecx, str.excluded
call fcn.004543ae
test eax, eax
jne 0x476bf0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x14]
mov edi, dword [eax + 0x18]
mov dword [esp + 0x20], edi
mov dword [esi + 0x1c], 2
test edi, edi
je 0x476d0a
mov eax, dword [edi + 0x48]
xor edi, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 1
movsx edx, word [eax + 0x2a]
mov ecx, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
test edx, edx
jle 0x476c54
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx]
call fcn.004543ae
mov edx, dword [esp + 0x44]
test eax, eax
je 0x476c44
mov ecx, dword [esp + 0x48]
inc edi
add ecx, 0x10
mov dword [esp + 0x48], ecx
cmp edi, edx
jl 0x476c20
jmp 0x476c54
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
movsx eax, word [eax + 0x28]
cmp edi, eax
pop eax
cmove edi, eax
cmp edi, edx
jl 0x476c74
mov ecx, dword [ebp + 0xc]
call fcn.00479f3c
mov edx, dword [esp + 0x20]
test eax, eax
je 0x476c78
test byte [edx + 0x24], 0x40
push 0xffffffffffffffff
pop eax
cmove edi, eax
jmp 0x476c78
mov edx, dword [esp + 0x20]
movsx eax, word [edx + 0x2a]
cmp edi, eax
jge 0x476d0a
inc dword [esp + 0x10]
cmp dword [esi + 0x1c], 2
jne 0x476cc7
cmp byte [ebx + 0xc8], 2
mov ecx, dword [ebp + 0x10]
jb 0x476cab
mov word [esi + 0x20], di
mov dword [esi + 0x2c], edx
mov dword [esp + 0x34], 0xa2
jmp 0x476d0d
mov eax, dword [ecx + 8]
mov dword [esp + 0x34], 0xab
mov eax, dword [eax + 0x18]
add eax, edi
or dword [esi + 4], 0x400000
mov dword [esi + 0x1c], eax
jmp 0x476d0d
test edi, edi
jns 0x476cd1
mov byte [esi + 1], 0x44
jmp 0x476cfb
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
cmp dword [esi + 0x1c], 0
push 0xffffffffffffffff
pop ecx
jne 0x476cef
cmp edi, 0x20
cmovge eax, ecx
or dword [ebx + 0x88], eax
jmp 0x476cfb
cmp edi, 0x20
cmovge eax, ecx
or dword [ebx + 0x8c], eax
mov dword [esi + 0x2c], edx
mov word [esi + 0x20], di
mov dword [esp + 0x34], 0x4d
mov ecx, dword [ebp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jne 0x476d59
cmp eax, 1
jne 0x476d59
test edi, edi
je 0x476d59
test byte [ecx + 0x18], 0x20
jne 0x476d59
mov ecx, dword [ebp + 0xc]
call fcn.00479f3c
test eax, eax
je 0x476d59
mov eax, dword [edi + 0x10]
test byte [eax + 0x24], 0x40
jne 0x476d59
xor edi, edi
mov byte [esi + 1], 0x44
inc edi
or eax, 0xffffffff
mov dword [esp + 0x10], edi
mov word [esi + 0x20], ax
jmp 0x476d5d
mov ecx, dword [ebp + 0x10]
jmp 0x476d15
mov edi, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
test byte [edx + 0x18], 0x80
je 0x476db9
test edi, edi
jne 0x476dbd
cmp dword [ebp + 8], edi
jne 0x476e00
mov eax, dword [edx + 8]
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
test ecx, ecx
jle 0x476dfc
add eax, 8
mov dword [esp + 0x30], eax
cmp dword [eax], 0
je 0x476da6
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.004543ae
test eax, eax
je 0x476e85
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x54]
inc edi
add eax, 0x18
mov dword [esp + 0x30], eax
cmp edi, ecx
jl 0x476d87
mov edx, dword [ebp + 0x10]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x476e00
cmp edi, 1
je 0x476f8c
push dword [ebp + 0xc]
test edi, edi
mov ecx, str.ambiguous_column_name
mov eax, str.no_such_column
cmovne eax, ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x476f58
push dword [ebp + 8]
push ecx
push eax
push str._s:__s._s._s
push ebx
call fcn.004542c2
add esp, 0x18
jmp 0x476f81
mov edi, dword [esp + 0x10]
mov edx, dword [edx + 0xc]
inc dword [esp + 0x3c]
mov dword [ebp + 0x10], edx
test edx, edx
jne 0x4768f1
cmp dword [ebp + 8], edx
jne 0x476dc6
test byte [esi + 4], 0x40
je 0x476e71
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 0xa5], dl
jne 0x476f37
mov eax, dword [esp + 0x40]
test dword [eax + 0x18], 0x10000
je 0x476f2a
call fcn.00481804
test eax, eax
je 0x476e5c
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x20]
and eax, 0x40000000
or eax, 0
jne 0x476f37
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x20]
and eax, 0x20000000
or eax, 0
jne 0x476f37
mov ecx, esi
call fcn.00479bd8
test eax, eax
je 0x476dc6
jmp 0x476f50
mov ecx, dword [ebp + 0x10]
imul eax, edi, 0x18
mov edx, dword [ecx + 8]
mov ecx, dword [eax + edx + 4]
mov eax, dword [ebp + 0x10]
test byte [eax + 0x18], 1
jne 0x476ebf
test byte [ecx + 4], 0x10
je 0x476ebf
mov ecx, dword [esp + 0x30]
push dword [ecx]
push str.misuse_of_aliased_aggregate__s
push ebx
call fcn.004542c2
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 0x476ede
test dword [ecx + 4], 0x8000
je 0x476ede
mov ecx, dword [esp + 0x30]
push dword [ecx]
push str.misuse_of_aliased_window_function__s
jmp 0x476eac
call fcn.004786ae
cmp eax, 1
je 0x476ef7
push str.row_value_misused
push ebx
call fcn.004542c2
pop ecx
pop ecx
jmp 0x476eb5
mov eax, dword [esp + 0x3c]
mov ecx, ebx
push eax
push 0x5f4bbf
push esi
push edi
call fcn.004766c8
add esp, 0x10
cmp byte [ebx + 0xc8], 2
jb 0x477006
push esi
xor edx, edx
mov ecx, ebx
call fcn.0047df9b
pop ecx
jmp 0x477006
mov eax, dword [ecx + 0x20]
and eax, 0x40000000
jmp 0x476e68
push dword [ebp + 0xc]
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.004538db
add esp, 0xc
mov byte [esi], 0x71
and dword [esi + 0x2c], 0
xor eax, eax
inc eax
jmp 0x476eb8
cmp dword [ebp + 8], 0
je 0x476f72
push dword [ebp + 8]
push eax
push str._s:__s._s
push ebx
call fcn.004542c2
add esp, 0x14
jmp 0x476f81
push eax
push str._s:__s
push ebx
call fcn.004542c2
add esp, 0x10
mov eax, dword [esp + 0x40]
mov byte [ebx + 0x11], 1
inc dword [eax + 0x14]
movzx eax, word [esi + 0x20]
test ax, ax
js 0x476fc8
mov edi, dword [esp + 0x14]
test edi, edi
je 0x476fc4
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 [esp + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
je 0x476fd8
mov ecx, dword [esp + 0x28]
call fcn.00478f74
and dword [esi + 0xc], 0
mov edx, dword [esi + 0x10]
test edx, edx
je 0x476fec
mov ecx, dword [esp + 0x28]
call fcn.00478f74
and dword [esi + 0x10], 0
mov ecx, dword [esp + 0x34]
or dword [esi + 4], 0x800000
mov byte [esi], cl
cmp edi, 1
jne 0x476eb5
test dword [esi + 4], 0x400000
jne 0x477024
mov ecx, dword [ebp + 0x10]
mov edx, esi
push dword [ecx + 4]
mov ecx, ebx
push dword [esp + 0x30]
call fcn.00480bc0
pop ecx
pop ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x10]
jmp 0x477030
mov eax, dword [eax + 0xc]
inc dword [eax + 0x10]
cmp eax, ecx
jne 0x47702d
jmp 0x476f50