Function at 0x49b330
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 0x49b3bb
test byte [edx + 0x18], 6
je 0x49b37f
mov dword [ebp + 0xc], 0
jmp 0x49b3bb
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
jle 0x49b3bb
xor edi, edi
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [edi + ecx]
push edx
call fcn.004715e0
add esp, 8
test eax, eax
je 0x49b3ae
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x10
cmp ebx, eax
jl 0x49b38a
jmp 0x49b3bb
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 0x49b5a3
mov ecx, dword [eax]
mov dword [ebp - 0x28], 0
test ecx, ecx
lea ebx, [eax + 8]
jle 0x49b575
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
test eax, eax
mov dword [ebp - 0x30], edi
je 0x49b471
mov ecx, dword [eax + 8]
test ch, 8
je 0x49b471
mov eax, dword [eax]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x2c], eax
cmp dword [eax], 0
jle 0x49b463
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.0049bc90
add esp, 0x10
test eax, eax
je 0x49b448
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 0x49b40d
test edi, edi
jne 0x49b556
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49b556
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49b486
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x48]
cmp eax, ecx
jne 0x49b556
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b4cd
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x49b496
mov eax, dword [edi]
push ecx
push eax
call fcn.004715e0
add esp, 8
test eax, eax
jne 0x49b556
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x49b4cd
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x49b4cd
mov edx, dword [ebp + 0x1c]
add edx, 0x2c
push edx
push 0
push eax
call fcn.0049e350
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, eax
inc eax
test ecx, ecx
mov dword [ebp - 0x10], eax
jne 0x49b4dd
mov dword [ebp - 8], ebx
mov edx, dword [edi + 4]
xor esi, esi
cmp word [edi + 0x2a], si
mov dword [ebp - 0x1c], edx
jle 0x49b556
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ecx]
push edx
call fcn.004715e0
add esp, 8
test eax, eax
jne 0x49b521
cmp dword [ebp - 4], 1
jne 0x49b535
test byte [ebx + 0x24], 4
jne 0x49b521
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x34]
push eax
push ecx
call fcn.0049bc40
add esp, 8
test eax, eax
je 0x49b535
movsx edx, word [edi + 0x2a]
mov ecx, dword [ebp - 0x1c]
inc esi
add ecx, 0x10
cmp esi, edx
mov dword [ebp - 0x1c], ecx
jl 0x49b4eb
jmp 0x49b556
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 0x49b54c
or eax, 0xffffffff
jmp 0x49b54f
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 0x49b3e0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
jmp 0x49b57b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
test eax, eax
je 0x49b5a3
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 0x49b59a
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 0x49b777
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49b777
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x49b777
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [esi + 0x78]
test eax, eax
je 0x49b621
xor ebx, ebx
mov bl, byte [esi + 0x90]
cmp ebx, 0x7c
je 0x49b5fe
mov edx, dword [ebp + 0x10]
push edx
push 0x8b5ecc
call fcn.004715e0
add esp, 8
test eax, eax
jne 0x49b5fe
mov eax, dword [ebp + 0x1c]
mov dword [eax + 0x1c], 1
jmp 0x49b61e
cmp ebx, 0x7b
je 0x49b621
mov ecx, dword [ebp + 0x10]
push ecx
push 0x8b5ec8
call fcn.004715e0
add esp, 8
test eax, eax
jne 0x49b621
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 0x49b658
mov esi, dword [eax + 8]
test esi, esi
je 0x49b658
mov eax, dword [ebp + 0x10]
push eax
push str.excluded
call fcn.004715e0
add esp, 8
test eax, eax
jne 0x49b658
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp + 0x1c]
mov edi, dword [ecx + 0x18]
mov dword [edx + 0x1c], 2
test edi, edi
je 0x49b777
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 0x49b6a4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebx]
push ecx
push edx
call fcn.004715e0
add esp, 8
test eax, eax
je 0x49b699
movsx eax, word [edi + 0x2a]
inc esi
add ebx, 0x10
cmp esi, eax
jl 0x49b678
jmp 0x49b6a4
movsx ecx, word [edi + 0x28]
cmp esi, ecx
jne 0x49b6a4
or esi, 0xffffffff
movsx edx, word [edi + 0x2a]
cmp esi, edx
jl 0x49b6c5
mov eax, dword [ebp + 0x14]
push eax
call fcn.0049d870
add esp, 4
test eax, eax
je 0x49b6c5
test byte [edi + 0x24], 0x40
jne 0x49b6c5
or esi, 0xffffffff
movsx ecx, word [edi + 0x2a]
cmp esi, ecx
jge 0x49b777
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 0x49b721
mov eax, dword [ebp + 8]
cmp byte [eax + 0xc8], 2
jb 0x49b6ff
mov word [edx + 0x20], si
mov dword [edx + 0x2c], edi
mov dword [ebp - 0x18], 0xa2
jmp 0x49b777
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 0x49b777
test esi, esi
jge 0x49b72b
mov byte [edx + 1], 0x44
jmp 0x49b769
test eax, eax
jne 0x49b74d
cmp esi, 0x20
jl 0x49b739
or eax, 0xffffffff
jmp 0x49b742
mov eax, 1
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp + 8]
or dword [ecx + 0x88], eax
jmp 0x49b769
cmp esi, 0x20
jl 0x49b757
or eax, 0xffffffff
jmp 0x49b760
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 0x49b7c4
cmp dword [ebp - 0x10], 1
jne 0x49b7c4
mov esi, dword [ebp - 8]
test esi, esi
je 0x49b7c4
mov edx, dword [ebp + 0x18]
test byte [edx + 0x18], 0x20
jne 0x49b7c4
mov eax, dword [ebp + 0x14]
push eax
call fcn.0049d870
add esp, 4
test eax, eax
je 0x49b7c4
mov ecx, dword [esi + 0x10]
test byte [ecx + 0x24], 0x40
jne 0x49b7c4
mov ebx, dword [ebp + 0x1c]
mov edi, 1
mov dword [ebp - 4], edi
mov word [ebx + 0x20], 0xffff
mov byte [ebx + 1], 0x44
jmp 0x49b7c7
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
test byte [edx + 0x18], 0x80
je 0x49b820
test edi, edi
jne 0x49b96d
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x49b828
mov eax, edx
xor esi, esi
mov edi, dword [eax + 8]
cmp dword [edi], 0
jle 0x49b828
lea ecx, [edi + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx]
test ebx, ebx
je 0x49b80b
mov eax, dword [ebp + 0x14]
push eax
push ebx
call fcn.004715e0
add esp, 8
test eax, eax
je 0x49b845
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edi]
inc esi
add ecx, 0x18
cmp esi, eax
mov dword [ebp - 0x1c], ecx
jl 0x49b7f1
mov ebx, dword [ebp + 0x1c]
jmp 0x49b828
test edi, edi
jne 0x49b96d
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 0x49b909
jmp 0x49b3bb
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 0x49b87a
test byte [ecx + 4], 0x10
je 0x49b87a
mov ecx, dword [ebp + 8]
push ebx
push str.misuse_of_aliased_aggregate__s
push ecx
call fcn.004960c0
add esp, 0xc
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
test ah, 0x40
jne 0x49b8a5
mov eax, dword [ecx + 4]
test ah, 0x80
je 0x49b8a5
mov edx, dword [ebp + 8]
push ebx
push str.misuse_of_aliased_window_function__s
push edx
call fcn.004960c0
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.0049ca50
add esp, 4
cmp eax, 1
je 0x49b8d0
mov eax, dword [ebp + 8]
push str.row_value_misused
push eax
call fcn.004960c0
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 0x8b36e4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0049bae0
mov al, byte [esi + 0xc8]
add esp, 0x18
cmp al, 2
jb 0x49b901
push ebx
push 0
push esi
call fcn.0049e350
add esp, 0xc
mov edi, dword [ebp - 0xc]
jmp 0x49ba91
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x49b97a
mov al, byte [ebx + 4]
mov edi, dword [ebp - 0xc]
test al, 0x40
je 0x49b954
mov edx, dword [ebp - 0x24]
push edi
push edx
call fcn.0049bd40
add esp, 8
test eax, eax
je 0x49b954
mov eax, dword [ebp + 0x14]
push eax
push str.double_quoted_string_literal:___w_
push 0x1c
call fcn.00471280
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.0049d780
add esp, 4
test eax, eax
je 0x49b97d
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
je 0x49ba09
test edi, edi
jne 0x49b984
mov edi, dword [ebp - 0xc]
mov eax, str.no_such_column
jmp 0x49b98c
mov edi, dword [ebp - 0xc]
mov eax, str.ambiguous_column_name
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x49b9bb
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.004960c0
mov byte [esi + 0x11], 1
mov eax, dword [edi + 0x14]
add esp, 0x18
inc eax
mov dword [edi + 0x14], eax
jmp 0x49ba0f
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b9e6
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.004960c0
mov byte [esi + 0x11], 1
mov eax, dword [edi + 0x14]
add esp, 0x14
inc eax
mov dword [edi + 0x14], eax
jmp 0x49ba0f
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push ecx
push eax
push str._s:__s
push esi
call fcn.004960c0
mov byte [esi + 0x11], 1
mov eax, dword [edi + 0x14]
add esp, 0x10
inc eax
mov dword [edi + 0x14], eax
jmp 0x49ba0f
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ax, word [ebx + 0x20]
test ax, ax
jl 0x49ba46
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49ba46
movsx ecx, ax
cmp ecx, 0x40
jl 0x49ba2c
mov ecx, 0x3f
mov eax, 1
xor edx, edx
call fcn.0054b2b0
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.0049cc90
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0x24]
push ecx
push edx
mov dword [ebx + 0xc], 0
call fcn.0049cc90
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 0x49b86e
mov ebx, dword [ebp + 0x1c]
test dword [ebx + 4], 0x400000
jne 0x49baaf
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.0049f800
add esp, 0x10
mov edx, dword [edi + 0x10]
mov eax, dword [ebp + 0x18]
inc edx
cmp edi, eax
mov dword [edi + 0x10], edx
je 0x49bacb
mov edi, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
inc edx
cmp edi, eax
mov dword [edi + 0x10], edx
jne 0x49babd
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret