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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x10140004]
xor eax, esp
mov dword [esp + 0x80], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ecx + 0x18]
push edi
mov dword [esp + 0x4c], esi
mov dl, byte [esi]
mov edi, dword [ebx]
movzx eax, dl
add eax, 0xffffffec
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], edi
cmp eax, 0x98
ja case.0x100545ea.28
movzx eax, byte [eax + 0x10055024]
mov dword [esp + 0x34], 1
jmp dword [eax*4 + 0x10055000]
mov ecx, dword [ebx + 4]
mov byte [esi], 0xa7
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x34]
dec word [esi + 0x20]
mov dword [esi + 0x1c], eax
mov byte [esi + 1], 0x44
jmp case.0x100545ea.28
xor ecx, ecx
mov edx, ebx
cmp ecx, 8
jge 0x10054628
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dword [esp + ecx*4 + 0x6c], eax
inc ecx
test edx, edx
jne 0x10054614
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1005463d
mov edx, ecx
mov ecx, dword [esp + 0x18]
call fcn.10052ca0
mov ecx, dword [esi + 0xc]
call fcn.10058f90
test eax, eax
jne 0x10054e0e
cmp byte [edi + 0xd8], 2
jae 0x10054e0e
cmp byte [esi], 0x33
mov byte [esi], 0x9b
sete al
or dword [esi + 4], 0x800
mov dword [esi + 8], eax
xor edx, edx
nop dword [eax]
cmp edx, 8
jge 0x10054684
mov eax, dword [esp + edx*4 + 0x6c]
inc edx
mov dword [ebx + 0x10], eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x10054670
mov edx, dword [esi + 0xc]
test edx, edx
je 0x10054692
mov ecx, dword [edi]
call fcn.100577b0
mov eax, dword [esp + 0x34]
mov dword [esi + 0xc], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
cmp dl, 0x3b
jne 0x100546cd
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x28], eax
jmp 0x10054762
test byte [ebx + 0x18], 0x28
mov edx, dword [esi + 0xc]
mov dword [esp + 0x34], edx
je 0x100546f2
push esi
push 0
push str.the__.__operator
mov edx, ebx
mov ecx, edi
call fcn.10054520
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esi + 0x10]
cmp byte [ecx], 0x3b
jne 0x10054702
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x1005470f
mov edx, dword [edx + 8]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
cmp byte [edi + 0xd8], 2
mov eax, dword [edx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x28], eax
jb 0x10054762
mov eax, dword [edi + 0x114]
test eax, eax
je 0x1005473f
cmp dword [eax], ecx
je 0x1005473d
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x10054730
jmp 0x1005473f
mov dword [eax], esi
mov ecx, dword [edi + 0x114]
test ecx, ecx
je 0x10054762
nop dword [eax]
cmp dword [ecx], edx
je 0x1005475d
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x10054750
jmp 0x10054762
lea eax, [esi + 0x2c]
mov dword [ecx], eax
mov edx, dword [esp + 0x18]
mov ecx, edi
push esi
push ebx
push dword [esp + 0x30]
push dword [esp + 0x20]
call fcn.100534f0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [esp + 0x30], eax
test eax, eax
je 0x1005479e
mov ecx, dword [eax]
jmp 0x100547a0
xor ecx, ecx
mov eax, dword [edi]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x48], 0
mov al, byte [eax + 0x54]
mov byte [esp + 0x3c], al
lea eax, [ebx + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
and eax, 0x4001
mov dword [esp + 0x14], 0
test dword [esi + 4], 0x1000000
mov dword [esp + 0x38], eax
je 0x100547ed
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x10], eax
cmp byte [eax + 0x10], 0xa6
jne 0x100547f5
mov dword [esp + 0x10], 0
mov eax, dword [esi + 8]
mov edx, eax
push 0
push dword [esp + 0x40]
mov dword [esp + 0x2c], eax
push ecx
mov ecx, dword [edi]
call fcn.10071ef0
mov edx, eax
add esp, 0xc
mov dword [esp + 0xc], edx
test edx, edx
jne 0x10054852
mov edx, dword [esp + 0x24]
mov ecx, dword [edi]
push eax
push dword [esp + 0x40]
push 0xfffffffffffffffe
call fcn.10071ef0
mov edx, eax
add esp, 0xc
mov dword [esp + 0xc], edx
test edx, edx
jne 0x10054845
mov dword [esp + 0x28], 1
jmp 0x10054a52
mov dword [esp + 0x48], 1
jmp 0x10054a52
xor eax, eax
cmp dword [edx + 0x14], eax
setne al
test dword [edx + 4], 0x400
mov dword [esp + 0x14], eax
je 0x1005491a
or dword [esi + 4], 0x80000
cmp dword [esp + 0x40], 2
jne 0x10054968
mov eax, dword [esp + 0x30]
movsd xmm0, qword [0x1013c050]
movsd qword [esp + 0x40], xmm0
mov eax, dword [eax + 0x1c]
cmp byte [eax], 0x99
je 0x100548a0
mov dword [esi + 0x1c], 0xffffffff
jmp 0x10054904
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x100548af
xor ecx, ecx
jmp 0x100548c7
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100548b4
mov eax, dword [esp + 0x24]
sub ecx, edx
and ecx, 0x3fffffff
push 1
push ecx
lea edx, [esp + 0x48]
mov ecx, eax
call fcn.10020e00
movsd xmm0, qword [esp + 0x48]
add esp, 8
comisd xmm0, xmmword [0x1013be08]
jbe 0x100548f1
mov dword [esi + 0x1c], 0xffffffff
jmp 0x10054904
mulsd xmm0, qword [0x1013bfd0]
cvttsd2si eax, xmm0
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x10054916
push esi
push str.second_argument_to__T___must_be_a_constant_between_0.0_and_1.0
push edi
call fcn.10020b80
add esp, 0xc
inc dword [ebx + 0x14]
mov edx, dword [esp + 0xc]
push 0
push dword [edx + 0x20]
mov edx, 0x1f
mov ecx, edi
push 0
call fcn.10067f00
add esp, 0xc
test eax, eax
je 0x10054985
cmp eax, 1
jne 0x1005494b
push esi
push str.not_authorized_to_use_function:__T
push edi
call fcn.10020b80
add esp, 0xc
inc dword [ebx + 0x14]
mov byte [esi], 0x79
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x20]
mov ecx, 0x7800000
mov dword [esp + 0x24], 0x800000
cmp byte [eax], 0x75
cmove ecx, dword [esp + 0x24]
mov dword [esi + 0x1c], ecx
jmp 0x1005491a
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
test eax, 0x2800
je 0x1005499d
or dword [esi + 4], 0x100000
mov eax, dword [edx + 4]
test eax, 0x800
jne 0x100549c7
mov eax, dword [esp + 0x20]
test byte [eax], 0x2a
je 0x100549e1
push esi
push 0
push str.non_deterministic_functions
mov edx, ebx
mov ecx, edi
call fcn.10054520
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x100549e1
mov ecx, dword [esp + 0x20]
mov al, byte [ecx]
and al, 0x2e
mov byte [esi + 2], al
test dword [ecx], 0x40000
je 0x100549e1
or dword [esi + 4], 0x40000000
mov ecx, dword [edx + 4]
test ecx, 0x40000
je 0x10054a0a
cmp byte [edi + 0x12], 0
jne 0x10054a0a
mov eax, dword [edi]
test byte [eax + 0x18], 0x20
jne 0x10054a0a
xor edx, edx
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], edx
jmp 0x10054a52
test ecx, 0x280000
je 0x10054a52
cmp byte [edi + 0xd8], 2
jae 0x10054b5c
test dword [esi + 4], 0x40000000
je 0x10054a52
test ecx, 0x80000
jne 0x10054a3f
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
and eax, 0x80
or eax, 0
jne 0x10054a52
push esi
push str.unsafe_use_of__T__
push edi
call fcn.10020b80
mov edx, dword [esp + 0x18]
add esp, 0xc
cmp byte [edi + 0xd8], 2
jae 0x10054b5c
mov ecx, dword [esp + 0x10]
test edx, edx
je 0x10054a7c
cmp dword [edx + 0x18], 0
jne 0x10054a7c
test ecx, ecx
je 0x10054a7c
push esi
push str._T___may_not_be_used_as_a_window_function
jmp 0x10054b12
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10054aeb
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test al, 1
je 0x10054ab0
mov edi, dword [esp + 0xc]
test dword [edi + 4], 0x10000
mov edi, dword [esp + 0x1c]
je 0x10054aa5
test ecx, ecx
je 0x10054ac6
jmp 0x10054aa9
test ecx, ecx
je 0x10054aeb
test eax, 0x4000
jne 0x10054aeb
mov eax, dword [esp + 0xc]
test dword [eax + 4], 0x10000
jne 0x10054ac6
mov eax, str.aggregate
test ecx, ecx
je 0x10054acb
mov eax, str.window
push esi
push eax
push str.misuse_of__s_function__T__
push edi
call fcn.10020b80
add esp, 0x10
mov dword [esp + 0x14], 0
inc dword [ebx + 0x14]
jmp 0x10054b70
cmp dword [esp + 0x28], 0
je 0x10054b05
mov eax, dword [edi]
cmp byte [eax + 0xb1], 0
jne 0x10054b05
push esi
push str.no_such_function:__T
jmp 0x10054b12
cmp dword [esp + 0x48], 0
je 0x10054b3b
push esi
push str.wrong_number_of_arguments_to_function__T__
push edi
call fcn.10020b80
inc dword [ebx + 0x14]
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x10054b70
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp dword [esp + 0x10], eax
setne al
add eax, 0xffffbffe
and dword [ecx], eax
jmp 0x10054b70
test edx, edx
jne 0x10054b25
test dword [esi + 4], 0x1000000
je 0x10054b70
push esi
push str.FILTER_may_not_be_used_with_non_aggregate__T__
push edi
call fcn.10020b80
add esp, 0xc
inc dword [ebx + 0x14]
jmp 0x10054b70
test dword [esi + 4], 0x1000000
mov edx, dword [esp + 0x14]
cmovne edx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x10054bb1
mov eax, dword [ecx]
add ecx, 8
test eax, eax
jle 0x10054bb1
mov ebx, dword [esp + 0x18]
mov edi, eax
mov esi, ecx
nop dword [eax]
mov edx, dword [esi]
mov ecx, ebx
call fcn.10052d80
test eax, eax
jne 0x10054ba5
dec edi
add esi, 0x14
test edi, edi
jg 0x10054b90
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
je 0x10054e0e
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10054c9f
cmp byte [edi + 0xd8], 2
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x2c], eax
jae 0x10054c02
test eax, eax
je 0x10054be1
mov edx, dword [eax + 0x48]
jmp 0x10054be3
xor edx, edx
push dword [esp + 0xc]
push ecx
mov ecx, edi
call fcn.100b4100
mov eax, dword [edi]
add esp, 8
cmp byte [eax + 0x57], 0
jne case.0x100545ea.28
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 8]
mov ebx, dword [esp + 0x18]
test edi, edi
je 0x10054c2f
mov esi, dword [edi]
add edi, 8
test esi, esi
jle 0x10054c2f
mov edx, dword [edi]
mov ecx, ebx
call fcn.10052d80
test eax, eax
jne 0x10054c2b
dec esi
add edi, 0x14
test esi, esi
jg 0x10054c16
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 0xc]
test edi, edi
je 0x10054c59
mov esi, dword [edi]
add edi, 8
test esi, esi
jle 0x10054c59
nop
mov edx, dword [edi]
mov ecx, ebx
call fcn.10052d80
test eax, eax
jne 0x10054c55
dec esi
add edi, 0x14
test esi, esi
jg 0x10054c40
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x28]
test edx, edx
je 0x10054c6b
mov ecx, ebx
call fcn.10052ca0
mov ecx, dword [esp + 0x10]
mov edx, ecx
mov ecx, dword [esp + 0x2c]
call fcn.100b5440
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
or dword [eax], 0x8000
or dword [eax], ecx
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000000
mov byte [esi], 0xa8
mov byte [esi + 2], 0
je 0x10054cc2
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + 0x28]
test edx, edx
je 0x10054cc2
mov ecx, dword [esp + 0x18]
call fcn.10052ca0
lea eax, [esp + 0x50]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x84], eax
xorps xmm0, xmm0
mov eax, dword [edi]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x14]
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x70], 0x10060470
mov dword [esp + 0x74], 0x10060380
mov dword [esp + 0x78], 0x10060440
test eax, eax
je 0x10054d44
mov edi, dword [eax]
add eax, 8
mov dword [esp + 0x2c], eax
test edi, edi
jle 0x10054d40
mov esi, eax
mov edx, dword [esi]
lea ecx, [esp + 0x6c]
call fcn.10052d80
test eax, eax
jne 0x10054d3c
dec edi
add esi, 0x14
test edi, edi
jg 0x10054d25
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
test dword [esi + 4], 0x1000000
je 0x10054d60
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + 0x28]
test edx, edx
je 0x10054d60
lea ecx, [esp + 0x6c]
call fcn.10052ca0
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x10054dbf
mov edi, dword [edi]
cmp ecx, dword [edi + 0x164]
jae 0x10054da2
cmp ecx, dword [edi + 0x15c]
jb 0x10054d8a
mov eax, dword [edi + 0x158]
mov dword [ecx], eax
mov dword [edi + 0x158], ecx
jmp 0x10054dbf
cmp ecx, dword [edi + 0x160]
jb 0x10054da2
mov eax, dword [edi + 0x150]
mov dword [ecx], eax
mov dword [edi + 0x150], ecx
jmp 0x10054dbf
cmp dword [edi + 0x210], 0
je 0x10054db6
mov edx, ecx
mov ecx, edi
call fcn.1001cde0
jmp 0x10054dbf
push ecx
call fcn.1001cd70
add esp, 4
test byte [esp + 0x80], 1
jne 0x10054de7
cmp word [esp + 0x80], 0
je 0x10054de7
inc byte [esi + 2]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x10054e04
mov edi, dword [esp + 0x1c]
jmp 0x10054cc2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10054e04
mov ecx, dword [eax + 4]
xor ecx, 0xffffefff
and ecx, 0x8001000
or ecx, 0x10
or dword [ebx + 0x18], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
or dword [eax], ecx
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
test dword [esi + 4], 0x1000
je case.0x100545ea.28
test byte [ebx + 0x18], 0x2e
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x38], eax
je 0x10054e56
push esi
push esi
push str.subqueries
mov edx, ebx
mov ecx, edi
call fcn.10054520
add esp, 0xc
jmp 0x10054e5e
mov edx, dword [esi + 0x14]
call fcn.10052d90
mov eax, dword [esp + 0x38]
cmp eax, dword [ebx + 0x10]
je case.0x100545ea.28
or dword [esi + 4], 0x40
or dword [ebx + 0x18], 0x40
jmp case.0x100545ea.28
test byte [ebx + 0x18], 0x2e
je case.0x100545ea.28
push esi
push esi
push str.parameters
mov edx, ebx
mov ecx, edi
call fcn.10054520
add esp, 0xc
jmp case.0x100545ea.28
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10054ec1
mov eax, dword [edi + 4]
test eax, 0x82000
je 0x10054ee8
test eax, 0x80000
je 0x10054eba
mov eax, dword [edi + 0x14]
mov edi, dword [eax + 8]
jmp 0x10054ebd
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x10054ea1
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne case.0x100545ea.28
mov ecx, dword [esi + 0xc]
mov al, byte [ecx]
cmp al, 0xb0
jne 0x10054edd
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x10054f3a
mov eax, dword [ecx + 0x14]
mov edx, dword [eax]
jmp 0x10054f4d
mov al, byte [edi]
cmp al, 0x3b
je 0x10054ef2
cmp al, 0xaa
jne 0x10054ec1
push edi
push ecx
call fcn.10054590
add esp, 8
cmp eax, 2
jne 0x10054f16
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0xaa
jne 0x10054ec1
mov al, byte [esi]
mov byte [esi + 2], al
xor eax, eax
mov byte [esi], 0xaf
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.10104901
mov esp, ebp
pop ebp
ret
cmp al, 0x8a
jne 0x10054f48
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
jmp 0x10054f4d
mov edx, 1
cmp byte [esi], 0x30
jne 0x10054f88
mov ebx, dword [esi + 0x14]
mov ecx, dword [ebx + 8]
mov al, byte [ecx]
cmp al, 0xb0
jne 0x10054f61
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x10054f6c
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
jmp 0x10054f7f
cmp al, 0x8a
jne 0x10054f7a
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x10054f7f
mov eax, 1
cmp eax, edx
jne 0x10054fb6
mov ecx, dword [ebx + 0x1c]
jmp 0x10054f8b
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
cmp al, 0xb0
jne 0x10054f94
mov al, byte [ecx + 2]
cmp al, 0xb1
jne 0x10054f9f
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
jmp 0x10054fb2
cmp al, 0x8a
jne 0x10054fad
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x10054fb2
mov eax, 1
cmp edx, eax
je case.0x100545ea.28
push str.row_value_misused
push edi
call fcn.10020b80
mov ecx, dword [edi]
add esp, 8
test byte [esi + 4], 3
jne 0x10054fd3
mov eax, dword [esi + 0x24]
test eax, eax
jg 0x10054fdc
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x10054fc6
jmp case.0x100545ea.28
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x8c]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
and eax, 2
call fcn.10104901
mov esp, ebp
pop ebp
ret