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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
push ebx
mov edx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx]
mov ecx, dword [ebp + 0x1c]
xor eax, eax
push edi
mov dword [ecx + 0x1c], 0xffffffff
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xa2
je 0x50ddab
test byte [edx + 0x18], 6
je 0x50dd6f
mov dword [ebp + 0xc], 0
jmp 0x50ddab
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
jle 0x50ddab
xor edi, edi
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [edi + ecx]
push edx
call fcn.004e3ef0
add esp, 8
test eax, eax
je 0x50dd9e
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x10
cmp ebx, eax
jl 0x50dd7a
jmp 0x50ddab
mov eax, dword [esi + 0x10]
shl ebx, 4
mov ecx, dword [ebx + eax + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 4]
test eax, eax
mov dword [ebp - 0x34], eax
je 0x50df93
mov ecx, dword [eax]
mov dword [ebp - 0x28], 0
test ecx, ecx
lea ebx, [eax + 8]
jle 0x50df65
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
test eax, eax
mov dword [ebp - 0x30], edi
je 0x50de61
mov ecx, dword [eax + 8]
test ch, 8
je 0x50de61
mov eax, dword [eax]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x2c], eax
cmp dword [eax], 0
jle 0x50de53
add eax, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push ecx
push edx
mov ecx, dword [eax]
push ecx
call fcn.0050e680
add esp, 0x10
test eax, eax
je 0x50de38
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
inc eax
mov dword [ebp - 0x10], 2
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov word [edx + 0x20], si
mov edi, 1
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
inc esi
add edx, 0x18
mov ecx, dword [eax]
mov dword [ebp - 0x1c], edx
cmp esi, ecx
jl 0x50ddfd
test edi, edi
jne 0x50df46
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x50df46
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x50de76
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x48]
cmp eax, ecx
jne 0x50df46
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x50debd
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x50de86
mov eax, dword [edi]
push ecx
push eax
call fcn.004e3ef0
add esp, 8
test eax, eax
jne 0x50df46
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x50debd
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x50debd
mov edx, dword [ebp + 0x1c]
add edx, 0x2c
push edx
push 0
push eax
call fcn.00510d40
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, eax
inc eax
test ecx, ecx
mov dword [ebp - 0x10], eax
jne 0x50decd
mov dword [ebp - 8], ebx
mov edx, dword [edi + 4]
xor esi, esi
cmp word [edi + 0x2a], si
mov dword [ebp - 0x1c], edx
jle 0x50df46
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ecx]
push edx
call fcn.004e3ef0
add esp, 8
test eax, eax
jne 0x50df11
cmp dword [ebp - 4], 1
jne 0x50df25
test byte [ebx + 0x24], 4
jne 0x50df11
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x34]
push eax
push ecx
call fcn.0050e630
add esp, 8
test eax, eax
je 0x50df25
movsx edx, word [edi + 0x2a]
mov ecx, dword [ebp - 0x1c]
inc esi
add ecx, 0x10
cmp esi, edx
mov dword [ebp - 0x1c], ecx
jl 0x50dedb
jmp 0x50df46
movsx eax, word [edi + 0x28]
mov edx, dword [ebp - 4]
mov dword [ebp - 8], ebx
inc edx
cmp esi, eax
mov dword [ebp - 4], edx
jne 0x50df3c
or eax, 0xffffffff
jmp 0x50df3f
movsx eax, si
mov ecx, dword [ebp + 0x1c]
mov word [ecx + 0x20], ax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
inc eax
add ebx, 0x48
mov ecx, dword [edx]
mov dword [ebp - 0x28], eax
cmp eax, ecx
jl 0x50ddd0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
jmp 0x50df6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
test eax, eax
je 0x50df93
mov edx, dword [eax + 0x2c]
mov dword [ecx + 0x1c], edx
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x2c], edx
mov dl, byte [eax + 0x24]
test dl, 8
je 0x50df8a
or dword [ecx + 4], 0x100000
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x50e167
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x50e167
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x50e167
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [esi + 0x78]
test eax, eax
je 0x50e011
xor ebx, ebx
mov bl, byte [esi + 0x90]
cmp ebx, 0x7c
je 0x50dfee
mov edx, dword [ebp + 0x10]
push edx
push 0x7099ec
call fcn.004e3ef0
add esp, 8
test eax, eax
jne 0x50dfee
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x1c], 1
jmp 0x50e00e
cmp ebx, 0x7b
je 0x50e011
mov ecx, dword [ebp + 0x10]
push ecx
push 0x7099e8
call fcn.004e3ef0
add esp, 8
test eax, eax
jne 0x50e011
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0x1c], eax
mov edi, dword [esi + 0x78]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x18]
test ch, 2
je 0x50e048
mov esi, dword [eax + 8]
test esi, esi
je 0x50e048
mov eax, dword [ebp + 0x10]
push eax
push str.excluded
call fcn.004e3ef0
add esp, 8
test eax, eax
jne 0x50e048
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp + 0x1c]
mov edi, dword [ecx + 0x18]
mov dword [edx + 0x1c], 2
test edi, edi
je 0x50e167
mov eax, dword [edi + 0x48]
mov ebx, dword [edi + 4]
xor esi, esi
mov dword [ebp - 0x14], eax
cmp word [edi + 0x2a], si
mov dword [ebp - 0x10], 1
jle 0x50e094
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebx]
push ecx
push edx
call fcn.004e3ef0
add esp, 8
test eax, eax
je 0x50e089
movsx eax, word [edi + 0x2a]
inc esi
add ebx, 0x10
cmp esi, eax
jl 0x50e068
jmp 0x50e094
movsx ecx, word [edi + 0x28]
cmp esi, ecx
jne 0x50e094
or esi, 0xffffffff
movsx edx, word [edi + 0x2a]
cmp esi, edx
jl 0x50e0b5
mov eax, dword [ebp + 0x14]
push eax
call fcn.00510260
add esp, 4
test eax, eax
je 0x50e0b5
test byte [edi + 0x24], 0x40
jne 0x50e0b5
or esi, 0xffffffff
movsx ecx, word [edi + 0x2a]
cmp esi, ecx
jge 0x50e167
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x1c]
cmp eax, 2
jne 0x50e111
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x50e0ef
mov word [edx + 0x20], si
mov dword [edx + 0x2c], edi
mov dword [ebp - 0x18], 0xa2
jmp 0x50e167
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], 0xab
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 4]
add ecx, esi
or eax, 0x400000
mov dword [edx + 0x1c], ecx
mov dword [edx + 4], eax
jmp 0x50e167
test esi, esi
jge 0x50e11b
mov byte [edx + 1], 0x44
jmp 0x50e159
test eax, eax
jne 0x50e13d
cmp esi, 0x20
jl 0x50e129
or eax, 0xffffffff
jmp 0x50e132
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x88], eax
jmp 0x50e159
cmp esi, 0x20
jl 0x50e147
or eax, 0xffffffff
jmp 0x50e150
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x8c], eax
mov dword [edx + 0x2c], edi
mov word [edx + 0x20], si
mov dword [ebp - 0x18], 0x4d
mov edi, dword [ebp - 4]
test edi, edi
jne 0x50e1b4
cmp dword [ebp - 0x10], 1
jne 0x50e1b4
mov esi, dword [ebp - 8]
test esi, esi
je 0x50e1b4
mov edx, dword [ebp + 0x18]
test byte [edx + 0x18], 0x20
jne 0x50e1b4
mov eax, dword [ebp + 0x14]
push eax
call fcn.00510260
add esp, 4
test eax, eax
je 0x50e1b4
mov ecx, dword [esi + 0x10]
test byte [ecx + 0x24], 0x40
jne 0x50e1b4
mov ebx, dword [ebp + 0x1c]
mov edi, 1
mov dword [ebp - 4], edi
mov word [ebx + 0x20], 0xffff
mov byte [ebx + 1], 0x44
jmp 0x50e1b7
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
test byte [edx + 0x18], 0x80
je 0x50e210
test edi, edi
jne 0x50e35d
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x50e218
mov eax, edx
xor esi, esi
mov edi, dword [eax + 8]
cmp dword [edi], 0
jle 0x50e218
lea ecx, [edi + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx]
test ebx, ebx
je 0x50e1fb
mov eax, dword [ebp + 0x14]
push eax
push ebx
call fcn.004e3ef0
add esp, 8
test eax, eax
je 0x50e235
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi]
inc esi
add ecx, 0x18
cmp esi, eax
mov dword [ebp - 0x1c], ecx
jl 0x50e1e1
mov ebx, dword [ebp + 0x1c]
jmp 0x50e218
test edi, edi
jne 0x50e35d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x20]
inc edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
test eax, eax
mov dword [ebp + 0x18], eax
je 0x50e2f9
jmp 0x50ddab
mov eax, dword [ebp + 0x18]
lea edx, [esi + esi*2]
mov eax, dword [eax + 0x18]
mov ecx, dword [edi + edx*8 + 4]
test al, 1
jne 0x50e26a
test byte [ecx + 4], 0x10
je 0x50e26a
mov ecx, dword [ebp + 8]
push ebx
push str.misuse_of_aliased_aggregate__s
push ecx
call fcn.00508ab0
add esp, 0xc
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
test ah, 0x40
jne 0x50e295
mov eax, dword [ecx + 4]
test ah, 0x80
je 0x50e295
mov edx, dword [ebp + 8]
push ebx
push str.misuse_of_aliased_window_function__s
push edx
call fcn.00508ab0
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.0050f440
add esp, 4
cmp eax, 1
je 0x50e2c0
mov eax, dword [ebp + 8]
push str.row_value_misused
push eax
call fcn.00508ab0
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp + 0x1c]
push ecx
push 0x707204
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0050e4d0
mov al, byte [esi + 0xc8]
add esp, 0x18
cmp al, 2
jb 0x50e2f1
push ebx
push 0
push esi
call fcn.00510d40
add esp, 0xc
mov edi, dword [ebp - 0xc]
jmp 0x50e481
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x50e36a
mov al, byte [ebx + 4]
mov edi, dword [ebp - 0xc]
test al, 0x40
je 0x50e344
mov edx, dword [ebp - 0x24]
push edi
push edx
call fcn.0050e730
add esp, 8
test eax, eax
je 0x50e344
mov eax, dword [ebp + 0x14]
push eax
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.004e3b90
add esp, 0xc
mov byte [ebx], 0x71
mov dword [ebx + 0x2c], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00510170
add esp, 4
test eax, eax
je 0x50e36d
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
je 0x50e3f9
test edi, edi
jne 0x50e374
mov edi, dword [ebp - 0xc]
mov eax, str.no_such_column
jmp 0x50e37c
mov edi, dword [ebp - 0xc]
mov eax, str.ambiguous_column_name
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x50e3ab
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
push eax
push str._s:__s._s._s
push esi
call fcn.00508ab0
mov byte [esi + 0x11], 1
mov eax, dword [edi + 0x14]
add esp, 0x18
inc eax
mov dword [edi + 0x14], eax
jmp 0x50e3ff
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x50e3d6
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push edx
push ecx
push eax
push str._s:__s._s
push esi
call fcn.00508ab0
mov byte [esi + 0x11], 1
mov eax, dword [edi + 0x14]
add esp, 0x14
inc eax
mov dword [edi + 0x14], eax
jmp 0x50e3ff
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push ecx
push eax
push str._s:__s
push esi
call fcn.00508ab0
mov byte [esi + 0x11], 1
mov eax, dword [edi + 0x14]
add esp, 0x10
inc eax
mov dword [edi + 0x14], eax
jmp 0x50e3ff
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ax, word [ebx + 0x20]
test ax, ax
jl 0x50e436
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x50e436
movsx ecx, ax
cmp ecx, 0x40
jl 0x50e41c
mov ecx, 0x3f
mov eax, 1
xor edx, edx
call fcn.005aac60
mov ecx, dword [ebp - 8]
or dword [ecx + 0x38], eax
mov eax, dword [ecx + 0x3c]
or eax, edx
mov dword [ecx + 0x3c], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
push edx
push eax
call fcn.0050f680
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0x24]
push ecx
push edx
mov dword [ebx + 0xc], 0
call fcn.0050f680
mov al, byte [ebp - 0x18]
mov ecx, dword [ebx + 4]
mov byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 0x10
or ecx, 0x800000
cmp eax, 1
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], ecx
jne 0x50e25e
mov ebx, dword [ebp + 0x1c]
test dword [ebx + 4], 0x400000
jne 0x50e49f
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
push eax
push ebx
push esi
call fcn.005121f0
add esp, 0x10
mov edx, dword [edi + 0x10]
mov eax, dword [ebp + 0x18]
inc edx
cmp edi, eax
mov dword [edi + 0x10], edx
je 0x50e4bb
mov edi, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
inc edx
cmp edi, eax
mov dword [edi + 0x10], edx
jne 0x50e4ad
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret