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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push ebx
push esi
mov esi, ecx
mov ecx, dword [edi]
test ecx, ecx
je 0x49cf79
cmp byte [edi + 0x10], 0
jne 0x49cf79
push esi
mov ebx, ecx
call fcn.0049ce50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49d149
mov eax, dword [ebx + 8]
mov ecx, dword [esi]
push 0
push eax
push ecx
call fcn.00453150
add esp, 0xc
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [esi]
push 0
push edx
push eax
call fcn.00453150
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [esi]
add esp, 0xc
test eax, eax
je 0x49cf3a
push 0
push 0
push eax
push ecx
call fcn.00452d30
add esp, 0x10
jmp 0x49cf3c
xor eax, eax
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
mov ecx, dword [esi]
je 0x49cf58
push 0
push 0
push eax
push ecx
call fcn.00452d30
add esp, 0x10
jmp 0x49cf5a
xor eax, eax
mov dword [edi + 0x1c], eax
movzx ecx, byte [ebx + 0x11]
mov byte [edi + 0x11], cl
mov dl, byte [ebx + 0x12]
mov byte [edi + 0x12], dl
mov al, byte [ebx + 0x10]
mov byte [edi + 0x10], al
movzx ecx, byte [ebx + 0x14]
mov byte [edi + 0x14], cl
jmp 0x49cf84
push eax
push edi
push esi
call fcn.0049dd20
add esp, 0xc
mov ebx, 0x59
cmp byte [edi + 0x10], bl
jne 0x49cfbf
cmp dword [edi + 0x18], 0
jne 0x49cf9a
cmp dword [edi + 0x1c], 0
je 0x49cfbf
mov eax, dword [edi + 0xc]
test eax, eax
je 0x49cfa6
cmp dword [eax], 1
je 0x49cfbf
push str.RANGE_with_offset_PRECEDING_FOLLOWING_requires_one_ORDER_BY_expression
call fcn.0041cbf0
mov edx, dword [ebp + 8]
add esp, 4
mov dword [edi + 0x2c], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
test dword [edx + 4], 0x10000
je 0x49d143
cmp dword [edi + 0x28], 0
mov eax, dword [esi]
mov dword [esp + 0xc], eax
je 0x49cff4
push str.FILTER_clause_may_only_be_used_with_aggregate_window_functions
call fcn.0041cbf0
mov edx, dword [ebp + 8]
add esp, 4
mov dword [edi + 0x2c], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5a
mov ecx, 0x55
mov edx, 0x4c
mov esi, 0x5c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x10], str.row_number
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], str.dense_rank
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], str.rank
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], str.percent_rank
mov dword [esp + 0x50], str.cume_dist
mov dword [esp + 0x58], 0x56
mov dword [esp + 0x60], str.ntile
mov dword [esp + 0x64], edx
mov dword [esp + 0x70], str.lead
mov dword [esp + 0x74], edx
mov dword [esp + 0x80], 0x4c3030
mov dword [esp + 0x84], edx
xor esi, esi
lea eax, [esp + 0x10]
cmp ecx, dword [eax]
je 0x49d0df
add esi, 1
add eax, 0x10
cmp esi, 8
jl 0x49d0c4
mov edx, dword [ebp + 8]
mov dword [edi + 0x2c], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
test eax, eax
mov ebx, dword [esp + 0xc]
je 0x49d0f4
push eax
push ebx
call fcn.00452b80
add esp, 8
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x49d105
push eax
push ebx
call fcn.00452b80
add esp, 8
xor eax, eax
shl esi, 4
mov dl, byte [esp + esi + 0x14]
mov cl, byte [esp + esi + 0x1c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov al, byte [esp + esi + 0x18]
cmp al, 0x56
mov byte [edi + 0x10], dl
mov byte [edi + 0x11], al
mov byte [edi + 0x12], cl
mov byte [edi + 0x14], 0
jne 0x49d143
push 0x9b
push ebx
mov eax, 0x4bef90
call fcn.004525d0
add esp, 8
mov dword [edi + 0x18], eax
mov edx, dword [ebp + 8]
mov dword [edi + 0x2c], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret