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

Disassembly:
sub esp, 0x84
mov eax, dword [0x1030fff4]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x8c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0x98]
cmp dword [esi], 0
je 0x10168475
cmp byte [esi + 0x10], 0
jne 0x10168475
push dword [esi]
push eax
push edi
call fcn.1017448b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1016860e
xor ebp, ebp
push ebp
push dword [ebx + 8]
push dword [edi]
call fcn.101464ed
mov dword [esi + 8], eax
push ebp
push dword [ebx + 0xc]
push dword [edi]
call fcn.101464ed
mov dword [esi + 0xc], eax
push ebp
push dword [ebx + 0x18]
push dword [edi]
call fcn.101458f3
mov dword [esi + 0x18], eax
push ebp
push dword [ebx + 0x1c]
push dword [edi]
call fcn.101458f3
mov dword [esi + 0x1c], eax
add esp, 0x30
mov al, byte [ebx + 0x11]
mov byte [esi + 0x11], al
mov al, byte [ebx + 0x12]
mov byte [esi + 0x12], al
mov cl, byte [ebx + 0x10]
mov byte [esi + 0x10], cl
mov al, byte [ebx + 0x14]
mov byte [esi + 0x14], al
jmp 0x10168483
push eax
push esi
push edi
call fcn.10166ff7
mov cl, byte [esi + 0x10]
add esp, 0xc
mov ebp, dword [esp + 0xa4]
cmp cl, 0x59
jne 0x101684ae
cmp dword [esi + 0x18], 0
jne 0x1016849b
cmp dword [esi + 0x1c], 0
je 0x101684ae
mov eax, dword [esi + 0xc]
test eax, eax
je 0x101684a7
cmp dword [eax], 1
je 0x101684ae
push str.RANGE_with_offset_PRECEDING_FOLLOWING_requires_one_ORDER_BY_expression
jmp 0x101684c8
test dword [ebp + 4], 0x10000
je 0x1016860b
cmp dword [esi + 0x28], 0
mov ebx, dword [edi]
je 0x101684d5
push str.FILTER_clause_may_only_be_used_with_aggregate_window_functions
push edi
call fcn.10143429
pop ecx
pop ecx
jmp 0x1016860b
push 0x4c
pop edi
push 0x5a
pop edx
push 0x55
pop ecx
push 0x59
pop eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
push 0x5c
pop eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x84], edi
xor edi, edi
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x10], str.row_number
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], str.dense_rank
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], str.rank
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], str.percent_rank
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], str.cume_dist
mov dword [esp + 0x58], 0x56
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], str.ntile
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], str.lead
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], 0x10281510
mov dword [esp + 0x88], edx
cmp ecx, dword [eax]
je 0x101685ac
inc edi
add eax, 0x10
cmp edi, 8
jl 0x1016859d
jmp 0x1016860b
cmp dword [esi + 0x18], 0
je 0x101685bd
push dword [esi + 0x18]
push ebx
call fcn.10145850
pop ecx
pop ecx
cmp dword [esi + 0x1c], 0
je 0x101685ce
push dword [esi + 0x1c]
push ebx
call fcn.10145850
pop ecx
pop ecx
add edi, edi
xor edx, edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov byte [esi + 0x14], dl
mov al, byte [esp + edi*8 + 0x14]
mov cl, byte [esp + edi*8 + 0x18]
mov byte [esi + 0x10], al
mov al, byte [esp + edi*8 + 0x1c]
mov byte [esi + 0x11], cl
mov byte [esi + 0x12], al
cmp cl, 0x56
jne 0x1016860b
push 0x102663e4
push 0x98
push ebx
call fcn.10237091
add esp, 0xc
mov dword [esi + 0x18], eax
mov dword [esi + 0x2c], ebp
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10236000
add esp, 0x84
ret