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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x1c]
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0xa2
mov dword [edx + 0x1c], 0xffffffff
cmp dword [ebp + 0xc], ecx
je 0x471dd3
mov ecx, dword [ebp + 0x18]
test byte [ecx + 0x18], 6
je 0x471d90
mov dword [ebp + 0xc], 0
jmp 0x471dd3
mov ecx, dword [eax + 0x14]
xor edi, edi
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jle 0x471dd3
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov ebx, eax
mov eax, dword [ebx]
mov esi, dword [ebp + 0xc]
sub esi, eax
jmp 0x471db0
movzx ecx, byte [eax]
movzx edx, byte [esi + eax]
cmp ecx, edx
jne 0x471ea6
test ecx, ecx
jne 0x471eb8
mov edx, dword [ebp - 0x10]
add edi, edi
mov eax, dword [edx + edi*8 + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x47202a
cmp dword [ecx], 0
lea eax, [ecx + 8]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], eax
jle 0x472001
lea ebx, [ebx]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 4], edx
test eax, eax
je 0x471e79
test dword [eax + 8], 0x800
je 0x471e79
mov eax, dword [eax]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x30], eax
cmp dword [eax], esi
jle 0x471e6f
lea ebx, [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebx]
push ecx
push edx
call fcn.0041ae30
add esp, 0xc
test eax, eax
je 0x471e5c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
mov edi, 1
add dword [ebp - 8], edi
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], eax
mov word [ecx + 0x20], si
mov edx, dword [ebp - 0x30]
inc esi
add ebx, 0x18
cmp esi, dword [edx]
jl 0x471e26
test edi, edi
jne 0x471fe6
cmp dword [ebp + 0x10], 0
je 0x471fe6
cmp dword [ebp + 0xc], 0
je 0x471e8e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
cmp ecx, dword [ebp - 0x1c]
jne 0x471fe6
cmp dword [ebp + 0x10], 0
je 0x471f3c
mov edx, dword [ebp - 0x10]
mov edi, dword [edx + 0xc]
test edi, edi
je 0x471ed0
mov ecx, edi
jmp 0x471ed5
movzx edx, byte [edx + 0x4dfe80]
movzx ecx, byte [ecx + 0x4dfe80]
sub ecx, edx
jne 0x471ebe
inc eax
jmp 0x471db0
inc edi
add ebx, 0x10
cmp edi, dword [ebp - 0x2c]
jl 0x471da4
jmp 0x471dd3
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x10]
sub esi, ecx
lea ebx, [ebx]
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x471f1d
test eax, eax
jne 0x471f33
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x471f3c
test edi, edi
je 0x471f3c
mov eax, dword [eax + 0x110]
test eax, eax
je 0x471f3c
mov ecx, dword [ebp + 0x1c]
add ecx, 0x2c
nop
cmp dword [eax], ecx
je 0x471f36
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x471f10
jmp 0x471f3c
movzx edx, byte [edx + 0x4dfe80]
movzx eax, byte [eax + 0x4dfe80]
sub eax, edx
jne 0x471fe6
inc ecx
jmp 0x471ee0
mov dword [eax], 0
mov eax, dword [ebp - 0x18]
mov ecx, eax
inc eax
mov dword [ebp - 0x18], eax
test ecx, ecx
jne 0x471f4f
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
movsx eax, word [eax + 0x2a]
xor edi, edi
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x471fe6
mov eax, dword [ebx]
mov esi, dword [ebp + 0x14]
sub esi, eax
lea ecx, [ecx]
movzx ecx, byte [eax]
movzx edx, byte [esi + eax]
cmp ecx, edx
jne 0x471fae
test ecx, ecx
jne 0x471fc0
cmp dword [ebp - 8], 1
jne 0x471fc3
mov edx, dword [ebp - 0x10]
test byte [edx + 0x24], 4
jne 0x471fa3
mov eax, dword [ebp + 0x14]
mov ecx, edx
push eax
mov eax, dword [ecx + 0x34]
call fcn.0041adc0
add esp, 4
test eax, eax
je 0x471fc3
inc edi
add ebx, 0x10
cmp edi, dword [ebp - 0x30]
jl 0x471f66
jmp 0x471fe6
movzx edx, byte [edx + 0x4dfe80]
movzx ecx, byte [ecx + 0x4dfe80]
sub ecx, edx
jne 0x471fa3
inc eax
jmp 0x471f70
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0x28]
inc dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
cmp edi, ecx
jne 0x471fdc
or eax, 0xffffffff
jmp 0x471fdf
movsx eax, di
mov edx, dword [ebp + 0x1c]
mov word [edx + 0x20], ax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
inc ecx
add eax, 0x48
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], eax
cmp ecx, dword [edx]
jl 0x471e00
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47202a
mov edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x2c], edx
test byte [eax + 0x24], 8
je 0x472024
or dword [ecx + 4], 0x100000
mov ecx, dword [edx + 0x48]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0xc], 0
jne 0x472299
cmp dword [ebp + 0x10], 0
je 0x472299
cmp dword [ebp - 0x18], 0
jne 0x472299
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax + 0x78], edi
je 0x4720d6
movzx ebx, byte [eax + 0x90]
cmp ebx, 0x7c
je 0x4720a0
mov esi, dword [ebp + 0x10]
mov ecx, 0x4e8018
sub esi, ecx
nop
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x47208b
test eax, eax
jne 0x47209d
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], 1
jmp 0x4720cd
movzx edx, byte [edx + 0x4dfe80]
movzx eax, byte [eax + 0x4dfe80]
sub eax, edx
jne 0x4720a0
inc ecx
jmp 0x472070
cmp ebx, 0x7b
je 0x4720d6
mov esi, dword [ebp + 0x10]
mov ecx, 0x4e801c
sub esi, ecx
nop
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x472190
test eax, eax
jne 0x4721a6
mov ecx, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], edi
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x78]
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x18]
test dword [eax + 0x18], 0x200
je 0x47211d
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x47211d
mov esi, dword [ebp + 0x10]
mov ecx, str.excluded
sub esi, ecx
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x4721ac
test eax, eax
jne 0x4721c2
mov ecx, dword [ebx + 0x14]
mov edi, dword [ecx + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 4], edi
mov dword [edx + 0x1c], 2
test edi, edi
je 0x472299
mov eax, dword [edi + 0x48]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x1c], eax
movsx eax, word [edi + 0x2a]
xor esi, esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x47216d
mov eax, dword [ebx]
mov edi, dword [ebp + 0x14]
sub edi, eax
lea esp, [esp]
movzx ecx, byte [eax]
movzx edx, byte [edi + eax]
cmp ecx, edx
jne 0x4721c8
test ecx, ecx
jne 0x4721da
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x28]
cmp esi, eax
jne 0x47216d
or esi, 0xffffffff
cmp esi, dword [ebp - 0x10]
jl 0x4721f2
mov edx, dword [ebp + 0x14]
call fcn.0041b720
test eax, eax
je 0x4721f2
mov edi, dword [ebp - 4]
test byte [edi + 0x24], 0x40
jne 0x4721f5
or esi, 0xffffffff
jmp 0x4721f5
movzx edx, byte [edx + 0x4dfe80]
movzx eax, byte [eax + 0x4dfe80]
sub eax, edx
jne 0x4720d6
inc ecx
jmp 0x4720b0
movzx edx, byte [edx + 0x4dfe80]
movzx eax, byte [eax + 0x4dfe80]
sub eax, edx
jne 0x47211d
inc ecx
jmp 0x4720f3
movzx edx, byte [edx + 0x4dfe80]
movzx ecx, byte [ecx + 0x4dfe80]
sub ecx, edx
jne 0x4721e0
inc eax
jmp 0x472150
inc esi
add ebx, 0x10
cmp esi, dword [ebp - 0x10]
jl 0x472142
jmp 0x47216d
mov edi, dword [ebp - 4]
cmp esi, dword [ebp - 0x10]
jge 0x472299
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x1c]
mov edx, 1
add dword [ebp - 8], edx
cmp ecx, 2
jne 0x472244
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xc8], 2
jb 0x472226
mov dword [ebp - 0x20], 0xa2
jmp 0x472292
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx + 8]
mov edx, dword [ecx + 0x18]
add edx, esi
or dword [eax + 4], 0x400000
mov dword [eax + 0x1c], edx
mov dword [ebp - 0x20], 0xab
jmp 0x472299
test esi, esi
jns 0x47224e
mov byte [eax + 1], 0x44
jmp 0x47228b
test ecx, ecx
jne 0x472274
cmp esi, 0x20
jl 0x472265
mov ecx, dword [ebp + 8]
or edx, 0xffffffff
or dword [ecx + 0x88], edx
jmp 0x47228b
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x88], edx
jmp 0x47228b
cmp esi, 0x20
jl 0x47227e
or edx, 0xffffffff
jmp 0x472282
mov ecx, esi
shl edx, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x8c], edx
mov dword [ebp - 0x20], 0x4d
mov word [eax + 0x20], si
mov dword [eax + 0x2c], edi
mov edi, dword [ebp - 8]
test edi, edi
jne 0x4722e1
cmp dword [ebp - 0x18], 1
jne 0x4722e1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4722e1
mov eax, dword [ebp + 0x18]
test byte [eax + 0x18], 0x20
jne 0x4722e1
mov edx, dword [ebp + 0x14]
call fcn.0041b720
test eax, eax
je 0x4722e1
mov ecx, dword [esi + 0x10]
test byte [ecx + 0x24], 0x40
jne 0x4722e1
mov eax, dword [ebp + 0x1c]
mov edi, 1
or edx, 0xffffffff
mov dword [ebp - 8], edi
mov word [eax + 0x20], dx
mov byte [eax + 1], 0x44
mov eax, dword [ebp + 0x18]
test byte [eax + 0x18], 0x80
je 0x4723ab
test edi, edi
jne 0x47257a
cmp dword [ebp + 0x10], edi
jne 0x4723b3
mov ecx, eax
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
xor ebx, ebx
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x4723b3
add ecx, 8
mov dword [ebp - 0x2c], ecx
lea esp, [esp]
mov ecx, dword [ecx]
test ecx, ecx
je 0x472397
mov edi, dword [ebp + 0x14]
mov esi, ecx
sub edi, ecx
lea ecx, [ecx]
movzx edx, byte [esi]
movzx eax, byte [esi + edi]
cmp edx, eax
jne 0x47237f
test edx, edx
jne 0x472391
mov edx, dword [ebp + 0x18]
mov esi, dword [edx + 8]
mov edx, dword [edx + 0x18]
lea eax, [ebx + ebx*2]
mov eax, dword [esi + eax*8 + 4]
test dl, 1
jne 0x47243c
test byte [eax + 4], 0x10
je 0x47243c
push ecx
push str.misuse_of_aliased_aggregate__s
mov edi, dword [ebp + 8]
call fcn.0043f120
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [eax + 0x4dfe80]
movzx edx, byte [edx + 0x4dfe80]
sub edx, eax
jne 0x472394
inc esi
jmp 0x472330
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
inc ebx
add ecx, 0x18
mov dword [ebp - 0x2c], ecx
cmp ebx, eax
jl 0x472320
jmp 0x4723b3
test edi, edi
jne 0x47257a
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xc]
inc dword [ebp - 0x24]
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x471dd3
cmp dword [ebp + 0x10], eax
jne 0x472583
mov edi, dword [ebp + 0x1c]
test byte [edi + 4], 0x40
je 0x47255e
mov ecx, dword [ebp - 0x28]
cmp byte [ecx + 0xa5], al
jne 0x472535
mov esi, dword [ebp - 0xc]
test dword [esi + 0x18], 0x10000
mov eax, dword [ecx + 0x20]
je 0x47252a
mov edx, dword [ecx + 0x24]
mov ecx, eax
mov dword [ebp - 0x38], edx
and ecx, 0x10000001
xor edx, edx
cmp ecx, 1
jne 0x472428
test edx, edx
jne 0x472428
mov ecx, eax
and ecx, 0x40000000
or ecx, edx
jne 0x472535
and eax, 0x20000000
xor ecx, ecx
or eax, ecx
jne 0x472535
jmp 0x472561
test edx, 0x4000
jne 0x472458
test dword [eax + 4], 0x8000
je 0x472458
push ecx
push str.misuse_of_aliased_window_function__s
jmp 0x472368
mov cl, byte [eax]
cmp cl, 0xab
jne 0x472462
mov cl, byte [eax + 0x26]
cmp cl, 0xac
jne 0x47246e
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
jmp 0x47247a
cmp cl, 0x86
jne 0x47249b
mov edx, dword [eax + 0x14]
mov eax, dword [edx]
mov eax, dword [eax]
cmp eax, 1
je 0x47249b
mov edi, dword [ebp + 8]
push str.row_value_misused
call fcn.0043f120
add esp, 4
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push ecx
push 0x4de410
push edx
push edi
mov eax, ebx
mov ecx, esi
call fcn.00471be0
add esp, 0x10
cmp byte [edi + 0xc8], 2
jb 0x4724de
mov eax, dword [edi + 0x110]
test eax, eax
je 0x4724de
jmp 0x4724d0
mov ecx, dword [ebp + 0x1c]
cmp dword [eax], ecx
je 0x472522
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4724d0
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x1c]
test dword [eax + 4], 0x400000
mov ebx, dword [ebp + 0x18]
jne 0x472501
mov edx, dword [ebx + 4]
push edx
mov edx, dword [ebp - 0x1c]
push eax
push edi
call fcn.00444280
add esp, 0xc
mov eax, 1
add dword [esi + 0x10], eax
cmp esi, ebx
je 0x472378
mov esi, dword [esi + 0xc]
add dword [esi + 0x10], eax
cmp esi, ebx
jne 0x472511
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax], 0
jmp 0x4724de
and eax, 0x40000000
xor ecx, ecx
or eax, ecx
je 0x472561
mov eax, dword [ebp + 0x14]
push eax
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.0043f0f0
add esp, 0xc
mov byte [edi], 0x71
mov dword [edi + 0x2c], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
push edi
call fcn.0041b280
add esp, 4
test eax, eax
je 0x472586
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
je 0x4725fb
test edi, edi
jne 0x47258d
mov esi, dword [ebp - 0xc]
mov eax, str.no_such_column
jmp 0x472595
mov esi, dword [ebp - 0xc]
mov eax, str.ambiguous_column_name
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test ecx, ecx
je 0x4725bf
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
push eax
push str._s:__s._s._s
call fcn.0043f120
add esp, 0x14
mov byte [edi + 0x11], 1
inc dword [esi + 0x14]
jmp 0x472601
cmp dword [ebp + 0x10], 0
mov ecx, dword [ebp + 0x14]
push ecx
je 0x4725e4
mov edx, dword [ebp + 0x10]
push edx
push eax
push str._s:__s._s
call fcn.0043f120
add esp, 0x10
mov byte [edi + 0x11], 1
inc dword [esi + 0x14]
jmp 0x472601
push eax
push str._s:__s
call fcn.0043f120
add esp, 0xc
mov byte [edi + 0x11], 1
inc dword [esi + 0x14]
jmp 0x472601
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
movzx eax, word [ebx + 0x20]
test ax, ax
js 0x472635
cmp dword [ebp - 0x14], 0
je 0x472635
movsx ecx, ax
cmp ecx, 0x40
jl 0x472620
mov ecx, 0x3f
mov eax, 1
xor edx, edx
call fcn.004b5350
mov ecx, dword [ebp - 0x14]
or dword [ecx + 0x38], eax
or dword [ecx + 0x3c], edx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x472649
mov edx, dword [ebp - 0x28]
push eax
push edx
call fcn.004370f0
add esp, 8
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0xc], 0
test eax, eax
je 0x472664
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.004370f0
add esp, 8
mov cl, byte [ebp - 0x20]
or dword [ebx + 4], 0x800000
cmp dword [ebp - 8], 1
mov dword [ebx + 0x10], 0
mov byte [ebx], cl
jne 0x472373
jmp 0x4724e1