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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
cmp dword [esi], 0
lea ebx, [esi + 0x10]
je 0x58b8e4
cmp byte [ebx], 0
jne 0x58b8e4
push dword [esi]
mov edi, dword [esp + 0x98]
push dword [esp + 0x9c]
push edi
call fcn.005996b6
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x58ba87
push 0
push dword [ebp + 8]
push dword [edi]
call fcn.0056565a
mov dword [esi + 8], eax
push 0
push dword [ebp + 0xc]
push dword [edi]
call fcn.0056565a
mov dword [esi + 0xc], eax
push 0
push dword [ebp + 0x18]
push dword [edi]
call fcn.005648df
mov dword [esi + 0x18], eax
push 0
push dword [ebp + 0x1c]
push dword [edi]
call fcn.005648df
mov dword [esi + 0x1c], eax
add esp, 0x30
mov al, byte [ebp + 0x11]
mov byte [esi + 0x11], al
mov al, byte [ebp + 0x12]
mov byte [esi + 0x12], al
mov al, byte [ebp + 0x10]
mov byte [ebx], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x14], al
jmp 0x58b8fc
push dword [esp + 0x98]
mov edi, dword [esp + 0x98]
push esi
push edi
call fcn.0058a47e
add esp, 0xc
cmp byte [ebx], 0x59
mov ebp, dword [esp + 0xa0]
jne 0x58b927
cmp dword [esi + 0x18], 0
jne 0x58b914
cmp dword [esi + 0x1c], 0
je 0x58b927
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58b920
cmp dword [eax], 1
je 0x58b927
push str.RANGE_with_offset_PRECEDING_FOLLOWING_requires_one_ORDER_BY_expression
jmp 0x58b941
test dword [ebp + 4], 0x10000
je 0x58ba84
cmp dword [esi + 0x28], 0
mov ebx, dword [edi]
je 0x58b94e
push str.FILTER_clause_may_only_be_used_with_aggregate_window_functions
push edi
call fcn.00561f37
pop ecx
pop ecx
jmp 0x58ba84
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], 0x652ae0
mov dword [esp + 0x88], edx
cmp ecx, dword [eax]
je 0x58ba25
inc edi
add eax, 0x10
cmp edi, 8
jl 0x58ba16
jmp 0x58ba84
cmp dword [esi + 0x18], 0
je 0x58ba36
push dword [esi + 0x18]
push ebx
call fcn.0056485a
pop ecx
pop ecx
cmp dword [esi + 0x1c], 0
je 0x58ba47
push dword [esi + 0x1c]
push ebx
call fcn.0056485a
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 0x58ba84
push 0x65bb34
push 0x9b
push ebx
call fcn.0056226d
add esp, 0xc
mov dword [esi + 0x18], eax
mov dword [esi + 0x2c], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret